ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Is there roslaunch python package in ros2?

asked 2022-11-09 05:55:56 -0600

Edvard gravatar image

updated 2022-11-09 05:56:24 -0600

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-09 07:04:56 -0600

ljaniec gravatar image

Perhaps QML could suit you:

I would also like to see other answers with pure RViz and ROS2 launch files

edit flag offensive delete link more

Comments

Thank you for your help. As far as I understand this is not what I looking for. I already have rqt interface to work with my robot, the problem is I don't have necessary package which allows me to launch specific list of launch files for different requirements. Still, I appreciate that you are trying to help.

Edvard gravatar image Edvard  ( 2022-11-09 07:10:44 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-09 05:55:56 -0600

Seen: 186 times

Last updated: Nov 09 '22