osrf / ros2_serial_example

61 stars 13 forks source link

Make the ROS 2 node in ros2_to_serial_bridge composable #57

Closed clalancette closed 5 years ago

clalancette commented 5 years ago

We are currently using the "old" way of creating a node in https://github.com/osrf/ros2_serial_example/blob/master/src/ros2_to_serial_bridge.cpp#L216; that is, we create the node, then do operations on the node. The new, composable way to do things is to create a class that derives from rclcpp::Node and then does all of the operations internally. We should rewrite things to the latter method as it will make our node composable down the line.