rosserial arduino communication
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?
Asked by rosdino on 2015-08-31 06:21:51 UTC
Answers
Hello,
I would suggest creating a string and outputing that to the ROS computer, as shown here: http://wiki.ros.org/rosserial_arduino/Tutorials/Hello%20World
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 :)
Asked by IliaBaranov on 2015-08-31 14:59:17 UTC
Comments