osrf / ros2_serial_example

70 stars 15 forks source link

Baudrate #20

Closed clalancette closed 5 years ago

clalancette commented 5 years ago

Allow configuration of the baudrate.

For the ros2_to_serial_bridge (the main component of this repository), the baudrate is configured as a number in the parameters file. For the dummy serial component, it is passed as a command-line argument (since it is not a ROS 2 component).

There are also some fixes in here:

  1. Remove the arbitrary handling of /dev/ttyACM devices at the UART layer
  2. To allow passing a "0" baudrate (essentially skipping termios configuration)
  3. To handle semi-permanent write errors gracefully