Prechádzať zdrojové kódy

更新robot_demo中drive_circle.cpp代码

corvin rasp melodic 2 rokov pred
rodič
commit
addcf5540a
1 zmenil súbory, kde vykonal 0 pridanie a 6 odobranie
  1. 0 6
      src/robot_demo/src/drive_circle_node.cpp

+ 0 - 6
src/robot_demo/src/drive_circle_node.cpp

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