Skip to main content

Questions tagged [ros2]

Use this tag for questions related to ROS (Robot Operating System) version 2.

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

How do I specify the version of Python3 for ROS2?

I'm new to ROS2. I've tried to install ROS2 from packages a few times and I've run into a lot of dependency issues. Recently I cleared out versions of ROS1 and I now have ros-eloquent-desktop ...
user avatar
1 vote
1 answer
36 views

[ROS2 foxy] Python launch argument scope when nesting launch files

The tldr is can you scope launch arguments in the python launch system when using IncludeLaunchDescription? Assume we have a base python launch file (...
user avatar
0 votes
1 answer
143 views

Transform between odom and base_link not made. ros2_controller Ackermann Steering Controller

I cannot set odom as a fixed frame inside RViz. It doesn't show up at all. My robot is fully functional and visible in both Gazebo. I don't get any warnings, errors or exceptions in the log. I'm using ...
Balazs Tuba's user avatar
0 votes
1 answer
58 views

How do I remap compressed video to raw video in ROS2?

I have compressed video published by a rpi4 as /camera/image_raw/compressed I want to republish it on my pc (ros2/Humble) in raw form as /image. This works, but gives warnings: ...
user1759557's user avatar
0 votes
1 answer
50 views

ros2_control error: controller manager not available and cannot parse params file

I am following the Articulated Robotics tutorial on simulated ros2_control. However, when it comes to running the launch file (launch_sim.launch.py), this is the output: ...
Flamethrower's user avatar
0 votes
1 answer
33 views

Should one or multiple controller_manager nodes be used for modular robots (e.g. base + arm)? [ros2_control]

If you have a robot composed of several sub-robots (e.g. a mobile base platform with a manipulator attached), each of which has its own independent controllers defined, is there a preferred approach ...
shonigmann's user avatar
0 votes
2 answers
719 views

GPS+Navigation2 : Issues navigating with an empty map after success with a pre-built map: "Received plan with zero length"

I've been working on a project using the Navigation2 stack to navigate a robot through GPS waypoints. When using a pre-built map, the robot successfully navigates to all waypoints. However, I ...
Marcus Vinicius's user avatar
0 votes
1 answer
496 views

How can I disable all logging to files under ~/.ros but still log to stderr?

I read https://docs.ros.org/en/humble/Concepts/Intermediate/About-Logging.html but that didn't really explain how one would go about it. Is it even possible? I am on Ubuntu 22.04 and I'm on a source ...
Hakaishin's user avatar
  • 125
0 votes
2 answers
952 views

Trying to install ROS2 on Ubuntu Jammy, but I'm running into some errors

I have ran into an error whilst trying to install ROS2, not sure what to do. Some background: I'm running ubuntu version 22.04.3 using a virtual machine. I'm trying to install ROS 2 Iron (...
Error100's user avatar
0 votes
3 answers
2k views

ros2 spinning problem[SOLVED]

i'm trying to transform ego-planner-swarm founded in: https://github.com/ZJU-FAST-Lab/ego-planner-swarm to ros2... the problem was in one of the subscription's callbacks there was a function in which ...
arash mokhtari sherkat's user avatar
0 votes
2 answers
296 views

How to specify the network interface ros2 uses for communication?

When I launch my node, after installing a docker image, I get following warning, luckily it arbitrarily selects the right interface, but how can I specify it to get rid of the warning? ...
user avatar
2 votes
1 answer
942 views

Getting the value of LaunchArgument inside python Launch file

I've came across an interesting issue. Is it possible to get the value of the LaunchArgument inside the python launch file? Take the following scenario: ...
Stanislav Svědiroh's user avatar
2 votes
0 answers
172 views

Building ROS2 Humble on macOS Fails Due to Old pybind11

I’ve been trying to build Humble for macOS 13.5.2 (on M1). With the help of Discord, I’ve gotten further along, but now I’ve run into an issue I’m not sure how to solve. When building ...
Rick's user avatar
  • 121
1 vote
2 answers
168 views

How do I make a robot imported using urdf and ROS2 gravity? It just floats

I can't seem to find any examples with imported URDFs (the universal robot examples don't seem to have any physics settings beyond joint inertias etc). My robot has mass from the urdf: But it seems ...
Craig MS's user avatar
1 vote
1 answer
75 views

ros2 interface command dosen't work

Hello, I'm fairly new to ros so I might be missing something obvious. During the ros2 tutorial I need to type the command 'ros2 interface', you can see in the image below that I get an error message ...
user avatar
1 vote
1 answer
25 views

Minimal ROS2 Installation

Is there a repo file available that produces a minimal ROS2 installation similar to ros-base from ROS1? Originally posted by david.hodo on ROS Answers with karma: 395 on 2019-06-10 Post score: 0
user avatar
1 vote
1 answer
34 views

Blocking call on MoveIts CurrentStateMonitor?

I've created my own move_group_interface due to some complications with the original and the need to expose more functionality of ...
NotARobot's user avatar
1 vote
2 answers
150 views

ROS2 on Windows with NVidia GPU

Hi everyone! I'm trying to understand the best way to setup my environment for ROS2+Gazebo. Up until now I was using an Ubuntu 22.04 VM with Virtualbox to get simple exercises up and running in ROS2, ...
slim71's user avatar
  • 25
1 vote
1 answer
347 views

FastDDS: demo_nodes_cpp between WSL2 and Raspberry Pi

I want to use WSL2 on my development PC to send control signals to nodes running on a Raspberry Pi. To get there I have a three step plan: get connectivity get ros2 humble communications to work get ...
not_a_robot's user avatar
1 vote
0 answers
146 views

How to check if the specified NAV2 behavior tree is running correctly?

I am following the navigation2_dynamic_point_following tutorial on ROS 2 Humble. I have executed successfully all the part, but I can not understand if the follow_point bt is running... To launch the ...
Cristian_wp's user avatar
1 vote
1 answer
518 views

Compile ROS2 package with pre-compiled shared library

Hi there, In my ros2 package, I want to compile the node with a shared library, which is an SDK shared library provided by the manufacturer of the hardware. I am able to compile my code with ...
user avatar
1 vote
1 answer
81 views

ROS2 default values ignored when including launch file in other launch

I am using ROS2 Humble and Ubuntu 22.04. My aim is to create one launch file which could run multiple launch files and nodes like nav2 and rtabmap and some others. The problem is that default ...
Marabir's user avatar
  • 26
1 vote
1 answer
937 views

slam_toolbox mapping is not life-long?

I've tested slam_toolbox producing life-long environment mapping, and not quite satisfied with the results. Below you can see a fragment of the mapping. I used a 1x0.5m case to test the changing map ...
nigeno's user avatar
  • 15
1 vote
1 answer
54 views

Does the mock hardware component "mock_components/GenericSystem" provided by ros2 control support the 'velocity' command interface?

When I change the command interface from 'position' to 'velocity' in Moveit2 tutorial (MoveIt Setup Assistant — MoveIt Documentation: Rolling documentation), I found the crux of the problem is the ...
Michael's user avatar
  • 35
1 vote
1 answer
598 views

convert/use rosbag1 with ROS2 on Ubuntu 22.04

Hi, I just got several datasets in the form of ROS1 rosbags. I would like to use them within ROS2 (humble), either by converting them to ROS2 bags, or by replaying them in ROS2, whatever is easier. Or ...
user avatar
1 vote
2 answers
48 views

How to correctly change the command interface of the panda robot arm from 'position' to 'velocity' in the Moveit2 website tutorial

I followed the official Moveit2 website to create the panda robot arm and successfully ran demo.launch.py: MoveIt Setup Assistant — MoveIt Documentation: Rolling ...
Michael's user avatar
  • 35
1 vote
1 answer
170 views

OpenSSL version problem in ROS2 Humble install for Windows

I'm trying to install ROS2 Humble for Windows because I would like to create an environments for Oculus Quest and Unity and Isaac sim and ROS2. I followed this official page but I noticed that OpenSSL ...
Shunichi's user avatar
0 votes
1 answer
1k views

rqt_plot in ROS 2?

I want to check the data in topic with realtime plotting, and I know there was rqt_plot in ROS 1. However, I could not found rqt_plot in ROS 2 humble. Moreover, I could not use correctly rqt -> ...
user avatar
0 votes
2 answers
361 views

Lidar scan not matching with obstacles when using AMCL in Nav2, specially when the robot is rotating

I am taking ground-truth odom and lidar scan messages from gazebo garden and using custom nodes to change the time stamps to ros2 time. I verified that messages are correct in both systems. When ...
Rakshit Soni's user avatar
0 votes
1 answer
641 views

ROS2 callback not called with approximate time synchronizer

Any idea, why my callback is not called ? ...
seka's user avatar
  • 1
0 votes
1 answer
100 views

ROS2 python launch: Using argument to create file name for a launch_argument

Hi! I like to launch gazebo with different environments (world files). But I only want to give as argument the world file name and not the full path. The full path should be created by launch file. ...
user avatar
0 votes
1 answer
532 views

[ROS2] Set namespace and node name from launch file in rclpy

Hi, how to set namespace and node name from the launch file in rclpy? Sample Launch File: ...
ravi's user avatar
  • 1,391
0 votes
1 answer
312 views

The repository does not have a Release file

Installing Humble Hawksbill on Ubuntu Jammy 22.04 in virtualbox. Following instructions from http://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html ...
user avatar
0 votes
1 answer
60 views

How to avoid planner jumping between 2 possible path

Hi everyone, recently I'm using Navigation2 release 1.1.0 with Galactic built from source in Ubuntu18.04. I'm using Smac 2D Planner and TEB controller in my navigation stack, they are run in 10Hz. The ...
user avatar
0 votes
2 answers
318 views

ROS2 Gazebo vacuum_gripper doesn't grip

I am trying to add a vacuum gripper to my ROS2/Gazebo/Python project. I have the following: grip.xacro (note the plugin for gripper): ...
Steve Brown's user avatar
0 votes
1 answer
411 views

Build of ROS2 package: Out of memory

Problem I try to build a ros2 package and run out of memory so that the system gets unresponsive or the process is terminated. I'm using ros2 foxy on ubuntu 20.04 Hardware CPU: 4 x ARM A53 RAM: 4 GB ...
user avatar
0 votes
1 answer
383 views

Nav2 how to make robot goes backward

Hello, I use ROS2 humble navigation2 package. I'd like to make the robot move like this: When the robot's goal is set behind it, it arrives at the goal behind it, instead of turning backward and ...
user avatar
0 votes
1 answer
206 views

Why does ROS2 custom message colcon build give include file errors?

I am new to ROS2, but very familiar with ROS1. I am doing a very minor tweak of the ROS2 tutorial Creating custom ROS 2 msg and srv files and it fails to build. The base tutorial code works fine. I ...
user avatar
0 votes
1 answer
115 views

Event handling on ROS2 Nodes across Launch files

I am using ROS2 Galactic, and writing Python Launch files. Let’s say I have a launch file, L1 that starts node L1N1. Then I have another launch file, L2, that can start node L2N1 on a specific ...
user avatar
0 votes
2 answers
265 views

xacro processing in ROS 2 YAML launch files (or XML)?

I'm trying to use YAML launch files for a Gazebo simulation project I'm working on, but it doesn't seem like there's a lot of documentation beyond the basics here. I need to process a robot ...
danzimmerman's user avatar
0 votes
1 answer
181 views

Ros2 launch gives an error in ros2_control_demos

Hello I am trying ros2_contro_demos. Follow the tutorial, ...
user avatar
0 votes
1 answer
346 views

How to extract position of the gripper in ROS2/MoveIt2

I created a URDF for my custom robot and gone through MoveIt Setup Assistant successfully generating RVIZ launch files for ROS2/Moveit2 Humble distro. I can drag the interactive marker and plan/...
user avatar
0 votes
0 answers
177 views

Local Planner struggling to follow the global plan

When I set the NAV2GOAL in rviz, the global plan displayed and robot initially starts following it. However just after reaching the goal and when an angular goal is set, sometimes the robot tries to ...
Rakshit Soni's user avatar
0 votes
2 answers
89 views

Why "generate_launch_description" is called two times when I start a launch file from another launch file

When I use the ros launch files I observed a phenomenon that, if I use launch file A to call launch file B, then the function of launchfile B "generate_launch_description" will be called two ...
xiao yu ge's user avatar
0 votes
0 answers
122 views

Wheel submerges into the ground in gazebo

I am currently working on simulating a mobile manipulator in Gazebo using ROS 2, where I am facing this issue. The wheels of the mobile base are being submerged into the ground when I am using kp and ...
Vishaal's user avatar
  • 55
0 votes
0 answers
74 views

Overlapping while mapping with slam toolbox (Even with good odometry)

Required Info: Operating System: Ubuntu 22.04 Installation type: Binaries ROS Version ROS 2 Humble Version or commit hash: Not sure? Laser unit: RP Lidar A2 Steps to reproduce the issue ...
Crab00189's user avatar
0 votes
1 answer
52 views

A problem occurs in tf while outputting robot_description to rviz

I created and ran a urdf file by combining several examples. When simply launched to view in rviz, tf_tree was produced normally. However, since I added a controller and output it to ...
ertretff's user avatar
0 votes
2 answers
77 views

Robotic arm moves on loading inside Gazebo

I am trying to run the ros2_control_demo_example_7 package of ros2_control_demos with some modifications to spawn r6bot robot ...
Anubhav Singh's user avatar
0 votes
1 answer
83 views

Cant echo topics in Ros2 ubunbu 22

I have been trying to echo a topic from labview from my other computer. I type out ros2 topic echo /rosint, it always seems to return ...
Avidsy's user avatar
  • 1
0 votes
1 answer
41 views

ROS2 removed 'seq' from std_msgs/Header. What is the alternative?

I used 'seq' to prevent darknet_ros processing the same video image multiple times. Now seq has been removed from std_msgs/Header, I can't do that. Is there an alternative? To provide context: I have ...
user1759557's user avatar