Closed stonier closed 5 years ago
Non-issue. If using ros2launch
to launch the script, it already includes launch_ros.get_default_launch_description
, so by doing the same here, it is generating it twice (and subsequently calling rclpy.init()
on the global context twice.
Solution: just fire up a normal launch.LaunchDescription()
if using ros2 launch
, or do like the examples in launch_ros
- create standalone scripts that can be run directly and include launch_ros.get_default_launch_description
yourself.
Workaround is to add everything to a normal launch description except
ROSSpecificLaunchStartup()
.