Is there roslaunch python package in ros2?
Hi. Sorry for all mistakes, English is not my native language. In my ROS1 project I have a python script that can launch specific list of launch files depending on clicked button in rqt. This script have following lines of code:
import roslaunch
...
class RosService(roslaunch.pmon.ProcessListener):
...
self.uuid = roslaunch.rlutil.get_or_generate_uuid(None, False)
...
self.launch_path = roslaunch.rlutil.resolve_launch_arguments(args)[0]
...
self.parent = roslaunch.parent.ROSLaunchParent(self.uuid, [(self.launch_path,self.launch_args)],
process_listeners = [self],
force_screen = self.force_screen,
force_log = self.force_log)
Is there a way to use something similar in ROS2? I know that there are ros2launch package, but, maybe I miss something, as far as I understand this package is very much different from roslaunch from ROS1. Appreciate any help. If there is an example of implementation similar functionality in any other project, I would be very grateful for chance to look on it.