Rosserial baudrate arduino zero
Hi,
does someone know where the baud rate is defined? I look in ArduinoHardware.h, and in the package rosserialpython in serialnode and serialclient. I have changed them but default is always 57600. And yes I know I can define it: `rosrun rosserialpython 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
Asked by gab27 on 2018-11-18 04:06:58 UTC
Answers
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.
Asked by Andy West on 2018-11-21 04:16:19 UTC
Comments