ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Rosserial baudrate arduino zero

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

gab27 gravatar image

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

Hi,

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 serial_node.py _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?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

Andy West gravatar image

The baud rate default is defined in rosserial_python/serial_node.py.

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

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

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

Seen: 348 times

Last updated: Feb 21 '19