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

rosserial arduino communication

asked 2015-08-31 06:21:51 -0600

rosdino gravatar image

updated 2015-08-31 06:36:27 -0600

Hello everyone,

I've subscribed to ros topic using rosserial in arduino. Now if I want to print arduino variables using example serial.printin(variable) inside arduino serial terminal, I cant do it, since ros subscriber already using serial communication.

Is there any better way to print the values so it helps me to verify the output?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-08-31 14:59:17 -0600

Hello,

I would suggest creating a string and outputing that to the ROS computer, as shown here: http://wiki.ros.org/rosserial_arduino...

That way, all you have to do on the computer side is subscribe to that topic. On the Arduino side, put whatever you want into the hello char array.

Let me know if that works for you :)

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-31 06:21:51 -0600

Seen: 1,170 times

Last updated: Aug 31 '15