Questions tagged [roslaunch]

roslaunch is a tool for easily launching multiple ROS nodes locally and remotely via SSH, as well as setting parameters on the Parameter Server.

From Wiki: roslaunch is a tool for easily launching multiple ROS nodes locally and remotely via SSH, as well as setting parameters on the Parameter Server. It includes options to automatically respawn processes that have already died. roslaunch takes in one or more XML configuration files (with the .launch extension) that specify the parameters to set and nodes to launch, as well as the machines that they should be run on.

967 questions
4
votes
1 answer

How to execute a script at shutdown of a launch process

I am trying to execute a bash script when my robotic simulation is shut down (to tear down the network configuration necessary for the simulation). I use ROS2 launch system to do so and I planned on using the OnShutdown event handler to launch some…
1
vote
1 answer

How to execute command inside launch file?

How do you run a command inside a launch file to set a param value? I have launch file like:
Cerin
1
vote
1 answer

array/list as command line argument in roslaunch file

I am drawing some points inside rviz. I want to pass these points as command line argument to roslaunch file. In other word, I looking for a way to enter command like below- roslaunch render_points renderer.launch points:=[x1, y1, z1], [x2, y2,…
ravi
  • 1,356
  • 2
  • 4
  • 11
1
vote
2 answers

How are signals handled by roslaunch?

I have built a ROS node with signal handling because some files needed to be closed whenever the program was interrupted. Signal handling works fine when I run the node, but if I use roslaunch the node seems not to receive the appropriate…
georgebrindeiro
1
vote
4 answers

roslaunch if condition

How can say: run this node if argX==y The following does not work, and the documentation on this is lacking. Originally posted by Yogi on ROS Answers with karma: 411 on 2012-01-25 Post…
Yogi
0
votes
1 answer

use parameters from python launch file in node

I am trying to use parameters specified in my .launch.py file, but a ParameterNotDeclaredException is thrown when accessing any parameter. Does anyone know why? I try to access the parameters like this from within my…
rosnoob145
0
votes
1 answer

How can i spawn pr2 on gazebo?

Hello I'm trying to do the pr2_simulator_tutorial and i'm blocked in the first tutorial (http://wiki.ros.org/pr2_simulator/Tutorials/StartingPR2Simulation). I launched empty world as asked in the tutorials (and the world opened in gazebo)…
samourai
0
votes
1 answer

Custom gazebo world not loading in launchfile

Hello there, I have quite a confusing problem. I created a custom Gazebo world that I am able to launch via: $ gazebo /home/georg/catkin_ws/src/ml/worlds/chapter1_3.world as well as with: $ roslaunch gazebo_ros empty_world.launch…
GeorgNo
0
votes
1 answer

image_transport republish via LaunchDescription and remapping

Hi there, How can I start image_transport republish via Launch file? I tried the following: import launch import launch.actions import launch.substitutions import launch_ros.actions def generate_launch_description(): return…
anthares
0
votes
1 answer

Nested eval in ROS2 XML launch file

I am trying to find out if it's possible to load a parameter file in an XML launch file, where the path is computed from an arg. This requires nested (or chained) evals: The arg has the name of a robot Adding a suffix to that gives the name of the…
nnmm
0
votes
1 answer

ROS2: load a composable node through launch

Hi, The current syntax to launch (as in launch files) composable nodes is to actually run a ComposableNodeContainer that is pre-loaded with nodes. These nodes can then be unloaded from command line, and other nodes can be loaded similarly from…
oKermorgant
  • 354
  • 2
  • 5
0
votes
1 answer

Monitor remote nodes with roslaunch API

I am using the Python API of roslaunch to run several nodes, part of them on a remote machine (configured in the launch files). Since I need to know when nodes terminate or crash, I set up a process listener that should get called whenever a node…
Felix Widmaier
0
votes
2 answers

roslaunch command line args

Read through all the tutorials, but couldn't find the answer to this one. I have a ROS node executable, which I can run like this: ./my_node -arg1 -arg2 I can also start it using roslaunch and a my_launch.launch file: roslaunch…
Leonid
0
votes
2 answers

Should $(find package) evaluate on remote machine's environment?

I have a master launch file that includes two other launch files, one of which is contained inside a group like this:
seanarm
0
votes
1 answer

how to launch a file when open the system Ubuntu?

I want to rolaunch a launch file when i start the Ubuntu system automatically,how can I realize this? Originally posted by Tomas yuan on ROS Answers with karma: 56 on 2017-12-01 Post score: 0
Tomas yuan
1
2 3
11 12