Skip to main content

Questions tagged [ros2-launch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

remapping lifecycle node from /ldlidar_node/scan to /scan data not published

I am using ldlidar for cartographer slam ros2 humble. The ldlidar published scan data on topic /ldlidar_node/scan but the cartographer node expects scan data on <...
Mubashir's user avatar
0 votes
0 answers
8 views

ROS2 equivalent for roslaunch_add_file_check?

I am new to ROS2 and trying to port some ROS1 code over to ROS2. In the ROS1 packages that I have written in the past, we used the roslaunch_add_file_check macro in ...
Prarobo's user avatar
0 votes
1 answer
27 views

Where to find full ROS2 API documentation?

I'm a ROS 1 veteran and am currently working on my first serious ROS 2 project. I'm having trouble figuring out the details of the how the documentation is laid out. I'll provide a specific example to ...
Airuno2L's user avatar
  • 306
0 votes
1 answer
22 views

Why autocompletion with tab does not show name of the lauch files in a ros 2 python bringup package?

ROS 2 Humble, Ubuntu 22.04, x86_64 CPU Hello, In a ROS 2 workspace I created a package called my_launcher whose directory tree looks like the following my_launcher ...
Azmyin Md. Kamal's user avatar
0 votes
2 answers
59 views

URDF seems to be not genuine when running with ros2_control and custom hardware interface

Whenever I start my robot I get an error regarding a not genuine URDF file, which causes the controller_manager not to spawn. I have already tried comparing my URDF with the diffbot demo but can't ...
McQueenPC's user avatar
1 vote
0 answers
17 views

CycloneDDS and ROS2 Launch File

I have this very specific network setup for my robotic platforms: Platform 1: RaspberryPi4, Ubuntu, Docker container with ROS2-humble over Ubuntu, access to Wlan0 and Eth0 (shared with P2) Platform 2:...
Andrea Infanti's user avatar
1 vote
0 answers
10 views

Problem when trying to bridge multiple topics using ros-gzharmonic-bridge from launch file

Environment: OS: Ubuntu 22.04 ROS version: humble Gazebo version: 8.2.0 (harmonic) ros_gzharmonic_bridge version: 0.244.12-3jammy Launch file: ...
Madhup Juneja's user avatar
0 votes
1 answer
25 views

use 'param' instead of 'args' in yaml launch-file?

I'm writing a launch file to start tf2_ros nodes. I'm using elements like : ...
SebL's user avatar
  • 51
0 votes
1 answer
73 views

How to automatically configure a ROS 2 lifecycle node in a launch file right after it's initialized?

I am writing a launch file to initialize a lifecycle node, configure it, and activate it. Currently, the node is successfully initialized. I have to manually configure it using ...
Jerry Bao's user avatar
0 votes
0 answers
18 views

Stuck simulating URDF robot using Gazebo (ROS 2 Humble)

I'm trying to simulate a robot in Gazebo in ROS2 Humble, but am encountering some issues. Here is the output from when I try to run the launch file: ...
Kwasi's user avatar
  • 11
0 votes
1 answer
46 views

How do I republish compressed video as raw from a launch file in ROS2?

I am trying to replicate this command in a ROS2 XML launch file: ...
user1759557's user avatar
1 vote
2 answers
55 views

What is the best practice to use dynamic names/variables in the sdf files? [closed]

NOTE: This is an open discussion and might not have a particular answer or can have multiple answers. Hello, I was trying to do a multi-robot simulation using ROS 2 humble and GZ-harmonic. I want to ...
aarsht7's user avatar
  • 113
0 votes
1 answer
16 views

Changing string value based on the launch argument

I have a boolean launch argument as follows ...
rubt punk's user avatar
0 votes
0 answers
61 views

How to execute non-ROS Python code in launch files?

I have an application where I'm happily using *.launch.py files BUT I would love to run non-ros (no node, no launch, etc) to populate some arguments of the downstream launch actions. Overall this ...
Ignacio Vizzo's user avatar
0 votes
1 answer
66 views

ROS2 node auto launch booting

I would like to launch my ROS2 nodes right after boot my PC. I'm using Ubuntu 22.04 and humble now. As far as i know, I have to make '.service' file in /etc/systemd/system to auto launch my node. This ...
chobo's user avatar
  • 1
0 votes
0 answers
10 views

How to use action.get_sub_entities() and entity.describe() in ROS2 python launch?

I need to register the event of a node in child launch file as target in parent launch. After I read this answer, I want to try something like: ...
Achmad Fathoni's user avatar
0 votes
0 answers
46 views

spawn turtle at specific location in turtlesim

I am trying to spawn turtle bot at specific location using launch file. I am able to spawn robot successfully at default location using: ...
Pratham's user avatar
  • 29
1 vote
0 answers
13 views

Why do we have to return the launch arguments at the end of the launch description in ros2 launch file?

If I understand correctly, we use the LaunchConfiguration function to define local variables in the launch file. To be able to set them externally, we have to use the DeclareLaunchArgument function. ...
Bogdán Havjár's user avatar
0 votes
1 answer
75 views

Pass parameters to node using gtest

I am trying to create some tests for a package using the gtest suite. Everything works fine, up to the point when I need to pass the test node some parameters. I can't manage to make the node ...
humble_tanuki1618's user avatar
0 votes
0 answers
37 views

Why can't I get parameters from launch file?

my system_initialize exe source code: ...
jiasheng pan's user avatar
0 votes
0 answers
18 views

Turtlebot3 not loading in gazebo (ROS2 Galactic, Gazebo-11)

I am trying to load a Turtlebot 3 waffle in the house world, get its laser scan data in Rviz2 and then navigate to 3 checkpoints with the help of rviz2 after mapping the world. The commands I am using ...
sdhar04's user avatar
  • 11
0 votes
1 answer
33 views

base Link is invisible in Gazebo-11

I dont understand why the base_link is transparent, every other Link looks fine. ...
Kedar's user avatar
  • 13
0 votes
0 answers
11 views

How to process a parameter in a launch file, to feed it as an argument to a another node being launched

party developed node that uses an argument on startup (and no parameters). I have a launch file that loads an YAML and uses it to feed the parameters to several nodes being launched. One of the ...
hugo's user avatar
  • 1
0 votes
1 answer
97 views

_launch.py was not found in the share directory of package

This question is almost similar to the other one which has the same issue of _launch.py was not found in the share package. What differs is i created the package ...
Vasanth's user avatar
  • 17
0 votes
1 answer
39 views

Why can't I launch the navigation stack from the same launch file as the simulation and the mapper?

I have this seemingly simple launch file: ...
moooeeeep's user avatar
  • 184
0 votes
1 answer
197 views

colcon build problem

...
Meriem Ghrissi's user avatar
0 votes
0 answers
86 views

ros2 emit change state event to lifecyle node which are started individually in different processes not robust

i'am working on ros2 lifecycle node and launch system, I have follow issue: I want to run multiple lifecycle nodes through LaunchService in different process due to some reason. However I noticed that ...
wuisky's user avatar
  • 1
0 votes
0 answers
28 views

cartographer for ros2 rolling?

I'm working through a ros2 turtlebot3 tutorial to get familiar with the cartographer package. However the example I've been following was done on an older version of ros2, HUMBLE, and my ros2 is ...
Walt's user avatar
  • 1
0 votes
1 answer
128 views

Gazebo ignition spawn_entity equivalent

When designing simulations in Gazebo Classic it was possible to spawn robots in the simulation with the launch file spawn_entity from the gazebo_ros pkg. Is there any equivalent in to that in Gazebo ...
pdaranda661's user avatar
0 votes
0 answers
42 views

Launch file hierarchy: IncludeLaunchDescription prioritization

I was correctly launching two launch files (let's say A and B) by means of a third launch file (C). Then I decided to impose that the nodes of launch files B should be started after the nodes of ...
AleCavalliPolito's user avatar
1 vote
3 answers
564 views

"No module named roslaunch" for ROS 2

I am getting error No module named roslaunch when executing a ROS 2 launch file. I know this question is already asked here but it dose not seems to solve my ...
Pratham's user avatar
  • 45
0 votes
1 answer
24 views

Awkward shell outputs for launching many nodes using a configuration file

I'm launching multiple nodes of unknown count using a configuration file that I provide to the backend launcher. So far, I appear to have no issues accomplishing this. However, calling ...
juxyper's user avatar
0 votes
0 answers
51 views

[bt_navigator_navigate_to_pose_rclcpp_node.rclcpp_action]: unknown result response, ignoring

Operating System: Ubuntu 22.04 LTS and Humble DDS implementation: FastDDS Client library (if applicable): rclcpp Suddenly, I am getting this error. To replicate: I have used two different ways: <...
GPrathap's user avatar
  • 137
1 vote
1 answer
154 views

No Gazebo GUI error with gazebo_ros command

Gazebo GUI didn't work when i used the "ros2 launch gazebo_ros gazebo.launch.py" command, It did appear with the "gazebo" command. Does anyone know how to fix this? I have tried to ...
Nguyễn Đức Thịnh's user avatar
0 votes
2 answers
34 views

Recursive launchfile call falling to execute

I'm working on a launchfile that recursively calls itself N times, depending on a parameter. However whenever I try to run it no nodes are initialized, could you help me find the error ? Thanks a lot <...
Lavnir's user avatar
  • 1
0 votes
1 answer
91 views

urdf_tutorial no such file or directory

I am using the urdf_tutorial. I cannot create an urdf file inside urdf folder, so I create the urdf file in the home directory. When I want to launch the urdf file, I get an error that no such file or ...
Msr09's user avatar
  • 1
0 votes
2 answers
169 views

Sharing a Singleton Instance Across Multiple Nodes in the Same Process in ROS 2

I am working on a robotic system using ROS 2, where I have implemented a singleton class in C++ to handle CAN interface communications. This singleton is used by two nodes; ...
Robotawi's user avatar
  • 510
0 votes
1 answer
178 views

Trouble launching display.launch.py file

I'm using ROS 2 ubuntu 22.04 Humble. i had made a model in fusion 360 and would like to make a gazebo simulation from it. i have tried the extension by https://github.com/dheena2k2/fusion2urdf-ros2. i ...
aman noufel's user avatar
0 votes
0 answers
27 views

ros2 python launcher passing through an integer number to another ros2 python launcher

i have a ros2 python launcher file with an integer variable named 'drone_id'... i want to write another ros2 python launcher which only open my main python launcher multiple times and every time pass ...
arash mokhtari sherkat's user avatar
0 votes
2 answers
194 views

Could not echo /map topic using Nav2_map_server

I am using ROS2-foxy with ubuntu 20.04 LTS and wanted to load a map using the map_server from Nav2_map server. i found this old thread from ROS answers regarding this (https://answers.ros.org/question/...
nitish's user avatar
  • 86
0 votes
1 answer
473 views

ROS2 systemd service launch to ROS topic

We are trying to launch a ROS2 subscriber node and publisher node on boot. We are using a systemd service file to launch our launch.py file. When running ...
Suchitha's user avatar
1 vote
2 answers
209 views

How to load a ComposableNode based on a condition?

I am on ROS2 Humble. My launch file looks the following ...
ASH's user avatar
  • 21
0 votes
0 answers
115 views

xacro: Substitution args not supported: cannot import name 'Log' from 'rosgraph_msgs.msg' in ubutnu desktop 22.04

I am very new to ROS2 and have only been practising for a few days so i am having a really tough time trying to find the solution. I am on a dual boot PC with Windows 11 and Ubuntu 22.04, and i am ...
Akshit's user avatar
  • 1
1 vote
1 answer
46 views

Including multiple of the same YAML launch files in a Python launch file

I would like to launch multiple of the same yaml launch files from a Python launch file with slightly different parameters for each one. Reading the official ROS2 documentations and also looking at ...
Peter Woo's user avatar
0 votes
0 answers
22 views

Error while launching URDF in RVIZ: "junk after document element"

I have followed the Nav2 tutorial for setting up my URDF, but this error had me stuck on section1 for days. Knowingly, I'm using the URDF and mesh files from an open repository https://github.com/...
quark epsi's user avatar
0 votes
1 answer
55 views

Crazyflie: Connecting, logging and parameters-->Add logging config

I would like to define stateEstimate.vx, stateEstimate.vy, and stateEstimate.vz variables to ...
nejattukenmez's user avatar
0 votes
1 answer
208 views

display.launch.py --share on ROS 2 tutorials is not working - Windows 11

I have installed ROS 2 (Humble Hawksbill) on windows 11 and trying to follow URDF tutorial. When I run the folllwing command: ...
Ros wizard's user avatar
0 votes
0 answers
108 views

ros2-rviz2 environment for crazyflie simulation

I's would like to use rviz2 environment to simulate cf2. I followed the ros2 tutorial in cf2 ros2 tutorial. However, I have not seen crazyflie structure on rviz. I added the terminal output and rviz ...
nejattukenmez's user avatar
1 vote
1 answer
121 views

ROS2 launch: No way to get log displayed in console?

I'm using ROS2 humble under Windows. I have a very simple publisher and subscriber: Publisher: ...
jpo38's user avatar
  • 121
0 votes
1 answer
161 views

ROS2 launch: subscriber not receiving data

I'm using ROS2 humble under Windows. I have a very simple PyQt based publisher and subscriber: Publisher: ...
jpo38's user avatar
  • 121