511 questions
Score of 3
1 answer
116 views
context is already initialized error when using ros2 gstreamer and opencv
I am trying to create a node that read a gstreamer pipeline and process it using opencv
Somehow those three are not playing nice. The strange thing is that this same code works well outside of ROS2. I ...
Score of 1
0 answers
64 views
MoveIt Task Constructor: Changing collision settings between Connect and MoveRelative stages causes planning failure
I am working with MoveIt Task Constructor (MTC) to implement a pick-and-place pipeline for an assembly task. The issue arises during the place phase, specifically when the component is about to make ...
Score of 0
0 answers
184 views
VS Code (Remote + Docker) Go to Definition jumps to ROS2 install/ Python packages instead of src/
I am using vscode remote explorer into a remote computer (SSH), into a docker container. This remote computer will be an autonomous robot, which will run the relevant code. I do it this way because I ...
Score of 0
0 answers
79 views
Webots 2025a + ROS 2 Jazzy: Velodyne point cloud appears distorted in RViz2
I am new to Webots 2025a and ROS 2 Jazzy running on Ubuntu 24.04. I am accessing Velodyne HDL-32E point cloud data in rviz2, but the resulting visualization appears distorted or tilted (like the ...
Score of 0
0 answers
131 views
ROS 2 TurtleBot3 ignores /cmd_vel from Python Node but works with CLI
I am developing a custom Python controller for a TurtleBot3 (Burger) using ROS 2. My node publishes geometry_msgs/msg/Twist messages to the /cmd_vel topic.
The Problem: When I run my Python script, ...
Score of 0
0 answers
44 views
My robot in rviz2 moves so fast when I control mobile robot in reality
I controlled robot in reality by using teleop, I set the velocity still 20 rpm each driver, so when transfer to m/s is still 0.18-0.2m/s. But when I see in rviz2, while my robot in real life moving, ...
Score of -1
1 answer
188 views
Interpreting YAML parameters in ROS2 as dict
I'm using ROS2 for a project. I'm stuck in interpreting the following parameter:
my_node:
category_sector_mapping:
Plastic: 0
Paper: 1
Glass: 2
Aluminium: 2
Organic: 2
...
Score of 0
1 answer
93 views
How to add custom ros message to micro_ros_espidf_component?
my project uses micro_ros_espidf_component which works fine with standard int32 messages, but we would like to use a custom message. To be fair I am not an expert in either cmake build system or esp-...
Score of 1
0 answers
143 views
SLAM Toolbox ROS2 running but map fixed after YAML change (LiDAR-only)
I’m trying to run SLAM Toolbox on ROS2 Humble using only a TIM561 2D LiDAR (no odometry). The node launches and scans publish, but the map in RViz doesn’t update — it stays fixed to the initial frame. ...
Score of 0
1 answer
142 views
Mapping with merged scan ROS2 Humble
I’m working on a ROS2 Humble project where I need to generate a map using data from two LiDAR sensors. Each LiDAR has a 270° field of view, and I’m trying to merge their scans into a single unified ...
Score of 1
1 answer
101 views
OGRCoordinateTransformation.Transform() gives wrong coordinates
I'm trying to do some local to global (EPSG:3042 to EPSG:4326) transformations in a ROS2 c++ script using GDAL.
OGRCoordinateTransformation *Transformation;
OGRSpatialReference poLocal, poGlobal;
...
Score of 0
1 answer
206 views
How to export point cloud data from ros2 3D Lidar simulation
I created my robot simulation with a 3D Lidar sensor using ROS2 Humble and Gazebo.
I'm able to visualize the point cloud data in RViz correctly, but now I want to save this point cloud in a file (.pcd/...
Score of 0
1 answer
220 views
ImportError: cannot import name 'FileContent' from 'launch.substitutions' - Ros2
I'm following the tutorial from Ros2 Humble and I'm at the "Using a URDF with robot_state_publisher (C++)" step (https://docs.ros.org/en/humble/Tutorials/Intermediate/URDF/Using-URDF-with-...
Score of 0
0 answers
83 views
How to use Moveit2 with fake controllers on ros2 humble?
I would like to use Moveit2 and visualizing the trajectory execution of the robot in Rviz without the need to load ros2 controllers neither a Gazebo simulation.
Is this possible and how?
Thanks
Score of 1
1 answer
555 views
Build fails: ModuleNotFoundError: No module named 'em' when building unitree_api
I am trying to build the unitree_api package with ROS 2 Humble on Ubuntu 22.04.
ROS 2 was installed following the official documentation (via apt).
I am building inside a Python virtual environment.
...