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

Rosserial baudrate arduino zero

asked 2018-11-18 03:06:58 -0500

gab27 gravatar image

updated 2019-02-21 01:57:54 -0500


does someone know where the baud rate is defined? I look in ArduinoHardware.h, and in the package rosserial_python in serial_node and serial_client. I have changed them but default is always 57600. And yes I know I can define it: rosrun rosserial_python _port:=/dev/ttyACM0 _baud:=250000

And second: Is it correct that it works with different baudrates, not just one? And what's the maximum baudrate for an arudino zero?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-21 03:16:19 -0500

Andy West gravatar image

The baud rate default is defined in rosserial_python/

baud = int(rospy.get_param('~baud','57600'))

As you rightly say, using "baud" as a argument with rosrun or as an argument for launch files is the best way to set this.

Unfortunately I don't know what the maximum baud rate is on the Arduino zero, but you could experiment with this using the Arduino IDE.

edit flag offensive delete link more

Question Tools



Asked: 2018-11-18 03:06:58 -0500

Seen: 409 times

Last updated: Feb 21 '19