在Grails中,如何重定向到我的主页(index.gsp),它不是任何控制器的一部分?
如何在没有grails尝试生成视图的情况下调用我的某个控制器类中的方法?
在grails中创建一个新的域类,并且永远不会将任何对象持久化到db,这是创建一个不想存储在db中的类的最佳方法吗?
我收到此错误"错误:没有匹配的函数来调用 ‘ros::NodeHandle::subscribe(const char [24], int, <unresolved overloaded function type>)’
这是我班级BangBangControlUnit中的回调函数
// on message reciept: 'current_maintained_temp'
void current_maintained_temp_callback(const std_msgs::Int32::ConstPtr& msg){
temp_to_maintain = msg->data;
}
这就是我在主函数中使用subscribe的方式
// subscribe to 'current_maintained_temp'
ros::Subscriber current_maintained_temp_sub = n.subscribe("current_maintained_temp", 1000, control.current_maintained_temp_callback);
谁能告诉我我做错了什么?