Ask Your Question
0

publish int value ?

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

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
1

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

gvdhoorn gravatar image

See the various Int types in the std_msgs package.

edit flag offensive delete link more

Comments

i have problem pass an int to std_message int16

dmngu9 gravatar imagedmngu9 ( 2015-07-18 07:44:02 -0600 )edit

never mind, i got it

dmngu9 gravatar imagedmngu9 ( 2015-07-18 07:49:07 -0600 )edit

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

gvdhoorn gravatar imagegvdhoorn ( 2015-07-18 09:20:40 -0600 )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 imagedmngu9 ( 2015-07-20 07:01:43 -0600 )edit

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

gvdhoorn gravatar imagegvdhoorn ( 2015-07-20 07:21:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 233 times

Last updated: Jul 18 '15