|
@@ -15,7 +15,6 @@ Drive_Circle::Drive_Circle()
|
|
}
|
|
}
|
|
|
|
|
|
Drive_Circle::~Drive_Circle(){
|
|
Drive_Circle::~Drive_Circle(){
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void Drive_Circle::publish_twist_cmd(float x, float z)
|
|
void Drive_Circle::publish_twist_cmd(float x, float z)
|
|
@@ -36,12 +35,7 @@ void Drive_Circle::go()
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
int main(int argc, char **argv)
|
|
{
|
|
{
|
|
- //初始化节点
|
|
|
|
ros::init(argc, argv, "drive_circle_node");
|
|
ros::init(argc, argv, "drive_circle_node");
|
|
-
|
|
|
|
- //根据Drive_Circle声明对象,调用构造函数
|
|
|
|
Drive_Circle drive_circle;
|
|
Drive_Circle drive_circle;
|
|
-
|
|
|
|
- //使ROS中回调函数生效
|
|
|
|
ros::spin();
|
|
ros::spin();
|
|
}
|
|
}
|