ROS警告 “in expansion of macro ‘ROS_INFO’”

There is a warning when I run catkin_make:

in expansion of macro ‘ROS_INFO’

The mistake is:

ROS_INFO(robot_ns.append(" finish!!!!!!!").c_str()); 

Correct code:

ROS_INFO("%s", robot_ns.append(" finish!!!!!!!").c_str()); 
发布了16 篇原创文章 · 获赞 1 · 访问量 270

猜你喜欢

转载自blog.csdn.net/weixin_45366564/article/details/102963588
ROS