Hi everyone,
This might make some people cringe, but let’s face it – you have a lot
of ROS1 code and you aren’t switching to ROS2 yet because you have to
rewrite a LOT of nodes.
So I wrote a legacy interface that behaves like rospy but speaks ROS2
behind the curtain. This is very different from a ROS1/ROS2 bridge in
that you don’t need to run a ROS1 master at all.
The idea is to be able to take any ROS1 node, replace
import rospy
with
import rospy2 as rospy
and BAM it should work on ROS2. Check out this repo! Included is a
single Python file that will run in ROS1 or ROS2.
https://github.com/dheera/rospy2
____________________
Dheera Venkatraman
http://dheera.net