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

publish int value ?

asked 2015-07-18 07:26:50 -0500

dmngu9 gravatar image

this is probably a noob question. i wonder if there is any message type so that i can pass an int number to for publishing

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-18 07:38:27 -0500

gvdhoorn gravatar image

See the various Int types in the std_msgs package.

edit flag offensive delete link more


i have problem pass an int to std_message int16

dmngu9 gravatar image dmngu9  ( 2015-07-18 07:44:02 -0500 )edit

never mind, i got it

dmngu9 gravatar image dmngu9  ( 2015-07-18 07:49:07 -0500 )edit

Question answered? Please mark it as such by clicking the checkmark to the left of the question.

gvdhoorn gravatar image gvdhoorn  ( 2015-07-18 09:20:40 -0500 )edit

theres 1 more issue , the int8_t is converted to ascii in subscriber. how can i solve it please? i want to change it to int

dmngu9 gravatar image dmngu9  ( 2015-07-20 07:01:43 -0500 )edit

? Could you update your original question with a code snippet that shows what you are trying to do?

gvdhoorn gravatar image gvdhoorn  ( 2015-07-20 07:21:23 -0500 )edit

Question Tools


Asked: 2015-07-18 07:26:50 -0500

Seen: 894 times

Last updated: Jul 18 '15