Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes
Accepted

How to execute a script at shutdown of a launch process

I can reproduce this. I don't have advice about the root cause, but it looks like you can provide a callable to the on_shutdown= argument which might work for your ...
danzimmerman's user avatar
2 votes
Accepted

How to pass parameters to included launch description?

Well I ended up with passing on the launch files as individual launch configs: ...
WouterOddBot's user avatar
2 votes
Accepted

How to add parameters to a node via a yaml file using a python launch file in ROS2?

So answering my own question, To make the parameters available to the node, they first need to be declared inside the node. Hence, the node should be something like: ...
S07's user avatar
  • 21
2 votes

Gazebo launces empty with ros, Model not loaded

Just needed to add version to sdf tag and it works! <sdf version="1.7">
Mahmud8248's user avatar
2 votes

How to use int or double as input to "arg" in ROS launch file

As there is no C++ code mentioned in the question, I wonder if I understood your requirements correctly. However, I never faced issues with integers or double datatypes with the ROS launch file. Below ...
ravi's user avatar
  • 1,376
2 votes
Accepted

ROS2 Humble: How to pass arguments to python launch files from command-line?

I think the problem is the trailing comma on your launch arg declaration: ...
danzimmerman's user avatar
1 vote

ROS-NOETIC Program works when executing by rosrun but don't work when using roslaunch

I think the problem here is how you are pointing to your directories, namely, your use of os.getcwd(). rosrun will run with ...
CaptKrasno's user avatar
1 vote

no transform from xxx to xxx after installing conda

I believe after you've installed conda, ROS may not be pointing to the default python path (usually on /usr/bin/python3). You can check the python version which is being called: ...
Marcus Vinicius's user avatar
1 vote
Accepted

"No module named roslaunch" for ROS 2

I have found the solution. The problem was that I didn't installed ros2 properly. I figured out the solution by uninstall ros2 from the system when my launch file was working and reinstalling ros2 ...
Pratham's user avatar
  • 35
1 vote

"No module named roslaunch" for ROS 2

Well unfortunately I can't comment (as the stupid rule is to have more than 50 rep) so here I am commenting in answer. Can you share the result of the ...
aarsht7's user avatar
  • 113
1 vote

fusion 360 to gazebo in ROS2

solved it!. I didnt properly source my workspace it was supposed to be like ...
aman noufel's user avatar
1 vote

ros2 launch foo.yaml with composable nodes and setting log level

Experimenting as I wrote the question, I finally found the required lines: ...
Ken Y-N's user avatar
  • 143
1 vote

can't see visuals in rviz

A couple of possible reasons: You need to add RobotModel (Ctrl+N > Scroll down to RobotModel) Make sure you've included the correct path to the model in your URDF
Sara D's user avatar
  • 13
1 vote
Accepted

can not mirror the nav2_bringup package

Pull your config file from the humble branch, not the main branch (which targets Rolling). Your issue is API updates made to more recent distributions are not in Humble. Mirror from the humble branch ...
Steve Macenski's user avatar
1 vote
Accepted

rosparam param="source_list"

This xml tag has nothing to do with ros publish/subscribe. ros1 provides a simple key/value property database called the "parameter server". For this tag, ...
Mike973's user avatar
  • 946
1 vote
Accepted

Controlling Arduino device from ROS node

You can use rosserial for sending commands over the Serial port to your Arduino. |0000|0000|0000|0000|0000| as |ID|Motor_1|Motor_2|Motor_3|Motor_4| This is called a dataframe. If you do end up using ...
ssarkar's user avatar
  • 586
1 vote

robot does not spawn in ros2

The robot_state_publisher node is missing in the launch file. The spawn_entity.py node is waiting for a ...
Gaurav Gupta's user avatar
1 vote
Accepted

Multiple ROS 2 Composable Nodes in a single launch file

Welcome to Robotics Stack Exchange! Is it possible to launch multiple ros2 Composable Nodes in a single launch file so that they run in parallel? Yes, there seem to be the following two ways: ...
ravi's user avatar
  • 1,376
1 vote

ROS2 Launch - How to Concatenate LaunchConfiguration with String

@shonigman's answer to his own question does not work for me any longer in Humble. What does work is: ...
AndyZe's user avatar
  • 873
1 vote

roslaunch: is neither a launch file in package

I had a similar issue. I had a typo: instead of package.launch I named the file package_launch. After renaming it worked :-)
Joern Boegeholz's user avatar
1 vote

ROS2 How to know if GUI is available in launch file

This is a common problem, and two common solutions have come up in ROS 1 that still work here: Allow command line parameters to your launch files (as per @ravi 's suggestion). So your GUI defaults to ...
cst0's user avatar
  • 888
1 vote
Accepted

ros2 launch file was not found in the share directory

Make sure setup.py includes the correct launch files. Inside data_files in setup: (os.path.join('share', package_name), glob('launch/*.launch.py')), Also import: <...
Rexcirus's user avatar
  • 248

Only top scored, non community-wiki answers of a minimum length are eligible