ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How exactly does ros_arduino_bridge work?

asked 2013-04-16 12:13:11 -0500

mickkelo gravatar image

updated 2014-04-20 14:09:41 -0500

ngrennan gravatar image

Hi. I want to use ros_arduino_bridge stack with a different board from Arduino, so I would like to know how ros_arduino_bridge works. Correct me if i'm wrong, but I've understood that the arduino code only receives commands and makes serial outputs, and the python code part takes these outputs and writes on topics.

Is it correct?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-16 16:45:38 -0500

Yes, I think that's essentially correct. The arduino code accepts simple single character commands, and replies back over the serial port. The code is not very complicated.

I just did the same thing you're talking about, I created a new motor_driver.cpp and encoder_driver.cpp file. I just wrote my own readEncoder(), resetEncoder(), resetEncoders(), initMotorController(), setMotorSpeed() and setMotorSpeeds() functions.


edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2013-04-16 12:13:11 -0500

Seen: 236 times

Last updated: Apr 16 '13