Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 40

rosrun string parameter syntax

$
0
0
I am trying to read an integer parameter as string however ros::param::get() does not read it. std::string my_param; if (ros::param::get("~x", my_param)) { ROS_INFO("value=%s", my_param.c_str()); } rosrun planning planner _x:=12 rosrun planning planner _x:="12" It cannot read parameters either way.

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>