fix:新增例程
This commit is contained in:
13
基础编程/e6.ROS环境下python测试实验/code/hello.cpp
Normal file
13
基础编程/e6.ROS环境下python测试实验/code/hello.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "ros/ros.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
//执行 ros 节点初始化
|
||||
ros::init(argc,argv,"hello");
|
||||
//创建 ros 节点句柄(非必须)
|
||||
ros::NodeHandle n;
|
||||
|
||||
ROS_INFO("hello SLAm!");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user