[ros-users] [Discourse.ros.org] [Next Generation ROS] Softwa…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: dcconner via ros-users
Date:  
To: ros-users
Subject: [ros-users] [Discourse.ros.org] [Next Generation ROS] Software reuse in ROS1 and ROS2


That makes sense short term for bridge, but is problematic for long term code maintenance. For the basic data type, I would think they should be the same with the only difference would be the serialization operators.

Would it be possible to define a base class with data type, and then a specific derived class that overrides the serialization for ROS1 and ROS2 usage? For internal code, you'd only need to pass the base data type around.

With this model, you could then put the specific derived classes in separate paths for your bridge. Only the top level middleware specific wrapper would need to know about the derived serialization wrappers.





---
[Visit Topic](https://discourse.ros.org/t/software-reuse-in-ros1-and-ros2/2262/9) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>