ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
-2

Integer to String Conversion [closed]

asked 2013-03-05 09:52:47 -0600

Ali Asad gravatar image

Hi ,

I am trying to convert an interger to string in ROS node using "itoa" but rosmake is giving me error that itoa is not in the scope

also i tried this method stringstream ss; ss<<lastreceivedodometry.pose.pose.position.x; str="ss.str();" <="" p="">

but it gives error "cannot convert ‘std::string’ to ‘const void’ for argument ‘2’ to ‘ssize_t send(int, const void, size_t, int)’

i just need a simple conversion from int to str

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by georgebrindeiro
close date 2013-03-05 16:27:04

1 Answer

Sort by » oldest newest most voted
2

answered 2013-03-05 10:04:06 -0600

Hansg91 gravatar image

http://codepad.org/JQt6uS5Z

Seems to work fine :)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-05 09:52:47 -0600

Seen: 2,281 times

Last updated: Mar 05 '13