Questions tagged [ros2]

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

635 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
20 views

Is there any LIDAR 3D perception package for ROS2?

I spent a very long time searching GitHub, Google, and many other sites, looking for a LiDAR recognition package for ROS2, but I could only find one nvidia pointpillar model. Because it requires a lot ...
user192301's user avatar
2 votes
0 answers
99 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
2 votes
0 answers
139 views

Destroying a publisher using node.destroy_publisher raises Invalid Handle exception

I'm trying to trigger a camera which is configured to use trigger mode in ROS2 Humble, Gazebo. I create a publisher inside a state in our state machine, to publish the trigger topic. Once the state ...
silkjc's user avatar
  • 21
2 votes
1 answer
1k views

ros2 communication between machines work over ethernet but not over wifi

I have two different machines installed with ubuntu 22.04 and ros (2) humble. I connected those two machines to the same subnet over ethernet connection, and check that they can ping each other. Then ...
Ran Binyamini's user avatar
2 votes
0 answers
47 views

Generated "__rosidl_generator_py.so" files issue

I've created a custom distribution using Yocto. On it I tried to build "builtin_interfaces" from source (I use this example for reproducibility). I'm able to run cmake and make but then I ...
Antoine Van Malleghem's user avatar
2 votes
0 answers
69 views

DJI Mavic Pro 2 drone in Webots nosedives at high speeds

I am using the webots_ros2_mavic package found here to simulate a drone in Webots. The drone is controlled by publishing a simple Twist message with linear and angular velocity components. I noticed ...
neo's user avatar
  • 21
1 vote
0 answers
25 views

How to change the robot_base_frame frame based on forward/reverse driving in NAV2

What is the best way to change the robot_base_frame based on the direction you are driving? For a normal car, it has symmetrical behavior when driving forward/backwards so it does not matter much. But ...
Nikolai's user avatar
  • 76
1 vote
0 answers
32 views

Read topic message from subscription without executing callback

"Reading data from subscription without executing callback" is considered to be one of the common use cases of ROS 2. However, I wonder why there is less description about this use case in ...
takamine's user avatar
1 vote
0 answers
21 views

ros2 interface show throw exception "InvalidResourceName"

I have customized some messages. After compiling and source, when I use the ros2 interface show command to view the message definition, it throws the following ...
张金阳's user avatar
1 vote
0 answers
54 views

Why is object recognition not available in ROS2?

I need to detect known objects in a workspace and generate very good 6-DOF pose estimates for an automated assembly project. I would prefer a non-neural-network approach, something like 3-D features ...
phugoid's user avatar
  • 11
1 vote
0 answers
32 views

Ground truth robot position from Ignition Gazebo Sim to ROS 2

Gazebo Sim 6.15 (Fortress), ROS 2 Iron. I want to get "ground truth" robot position into ROS, so that I could use it to validate diff_drive odometry (combining it with IMU to detect wheel ...
Mere Loom's user avatar
1 vote
0 answers
54 views

What is the best way to simulate Lidar for ROS2? Having problems

I have been trying to work out how to simulate a LiDAR using ROS2 / Gazebo, however I am having trouble getting anything to work properly. I am using ROS2-humble and IGN gazebo fortress I have tried 2 ...
Friizzle's user avatar
1 vote
0 answers
50 views

Gazebo_ros launch

all !! Try to do first project https://github.com/Dizog84/articubot_one making all as joshnewans teach) youtube articulatedrobotics.xyz Steps before I have 22.04 Ubuntu LTS ros2-humble Stay on second ...
Dizog Dizog's user avatar
1 vote
0 answers
25 views

Moveit2 'planning plugin name is empty' error when creating a new planning pipeline

I am trying to create a ROS2 node to send a goal pose to Moveit2 to initiate planning when working with 6 dof robot arm, xarm6. I am following the tutorial code from moveit2 like here. I am currently ...
kmartbirthdaycake's user avatar
1 vote
0 answers
86 views

ROS 2 Humble: RCLError: Failed to publish: Publisher;s contexxt is invalid

I am at the start of my journey learning to use ROS 2 Humble with the iRobot Create 3. I wrote a publisher to its light ring leds that allow me to override the control to the light ring and change the ...
Benjy's user avatar
  • 11
1 vote
0 answers
20 views

slam map edit or view tools

I'm a newer ros2 and slam engineer. Recently, we use the imu and 2D lidar run the Cartographer. However, it alwayes break in different place everytime. And I found that a company use the Karto and a ...
user21493099's user avatar
1 vote
0 answers
54 views

How to auto-fit my map inside RVIZ2 in real-time?

I’m using ROS2 Humble on Ubuntu 22 I am currently using a SLAM program called Google Cartographer. This program updates and displays the SLAM Map in real time through a program called RVIZ2. This SLAM ...
nexreal's user avatar
  • 11
1 vote
3 answers
63 views

Get the name of the node calling a service in the service callback

In rclpy (python), I'm creating a service. How can this service tell the name of the node that is calling it? My goal is to allow the service to check the node-name of the client before performing the ...
Sorawit Inprom's user avatar
1 vote
1 answer
54 views

How to Run ROS2 Humble natively on Beagle Bone Blue?

Could someone provide insight on how I'd go about running ROS2 Humble on BeagleBoneBlue? Trying to natively run ROS2 on beaglbone blue hardware for robotics project. I haven't found materials that ...
cwx's user avatar
  • 11
1 vote
1 answer
46 views

How to keep track of different robot configurations/ versions (urdf) over time

At my company, we are facing the following problem. We have a platform on which we often try different sensor configurations. Often the amount of sensors and type stay the same, but the extrinsic ...
Metz's user avatar
  • 23
1 vote
0 answers
202 views

error: no type named ‘type’ in ‘struct std::enable_if<false, void>’ when calling rclcpp::create_timer()

I am trying to convert a piece of code written in ROS1 to ROS2. I am having trouble with the following line, which instantiates a ros:::Timer object: in ROS1: ...
Natanel Birarov's user avatar
1 vote
0 answers
76 views

ROS2 TCP/IP Socket build error

Im quite new to ROS2 humble, so any advice would be appreciated. I am trying to build a socket inside the ROS2 node, so that I can receive some commands from other user. However, I get some build ...
Bob's user avatar
  • 11
1 vote
0 answers
24 views

Get ROS 2 JavaScript message object at run-time with rclnodejs

I need a way to retrieve a JavaScript object, at run-time with rclnodejs, which corresponds to the message on a topic. Instead of hard-coding the properties (or attributes) of the ROS 2 message in my ...
Bill Mania's user avatar
1 vote
1 answer
99 views

ros2 bag record <topic_name> failed to load entry point 'record'

I just finished installing ROS2 Humble for Windows and am trying to work through the tutorials in the documentation, but I am stuck on the "recording and playing back data" tutorial in the &...
tmwilson500's user avatar
1 vote
0 answers
81 views

How to simulate a radar(mmWave) sensor in gazebo?

I am trying to simulate mmWave radar sensor in ignition gazebo fortress. I am looking for a plugin for radar sensor. Can anyone guide me further? I am working on a ros2 Humble on Ubuntu 22.04 and ...
Hem92j's user avatar
  • 76
1 vote
0 answers
44 views

No map received | rvis | le potato aml-s905X-cc | rp lidar a1

I currently have a SLAMTEC RPlidar a1 hooked up to a le potato (rasp pi copy). I'm trying to run turtlebot3 cartographer (and eventually nav2). When I run the command ...
kyle brockman's user avatar
1 vote
0 answers
68 views

ROS2 C++ Generic Action / Service Client

I’m trying to make a generic C++ application for controlling ROS robots. The idea is to allow design of GUIs in a higher-level language (QML) without requiring modifying the C++ when integrating new ...
yunhui yang's user avatar
1 vote
0 answers
39 views

teb_local_planner problems

I use ROS2 Foxy and I'd like to Colcon build but it's can't the problem make my com not responding. I try to check with this command rosdep install -i --from-path src --rosdistro foxy -y then it ...
Thanapoom Pumee's user avatar
1 vote
0 answers
46 views

Peek at the message queue for a ROS2 topic subscriber in a callback

I'm sure this facility was in ROS1 (although this post suggests it wasn't) but I cannot find it in ROS2. Basically in my subscription callback I want something like this pseudocode: ...
Ken Y-N's user avatar
  • 143
1 vote
2 answers
458 views

Converting a ros2 bag of color raw images to image files or video

This is using ros2 Humble in Ubuntu 22.04 and native Python 3.10 Eventual goal: capturing depth aligned RGB and Depth streams from Intel RealSense D435 camera and converting them to RGB and Depth ...
Mona Jalal's user avatar
1 vote
2 answers
109 views

Is it possible to run a Gazebo Classic simulation distributed across more than one machine?

Currently I'm working on a project where we use ROS2 Humble integrated with Gazebo Classic. One of our goals is to distribute the Gazebo simulation so that the Gazebo world and each robot present on ...
João Mergulhão's user avatar
1 vote
1 answer
46 views

How can I use the Gazebo Garden Profiler to get performance information about individual plugins?

I am using gz garden to simulate a complex robot consisting of multiple components. I have already simplified with primitives the collision meshes, played with max_contacts but I keep getting low RTF (...
Gabriele's user avatar
1 vote
0 answers
84 views

Using Xbox Kinect v1 in ROS2 Humble for Autonomous Navigation

I have a question regarding the compatibility of the Xbox Kinect v1 with ROS2 Humble for autonomous navigation purposes. I have been researching online and found that there are drivers and packages ...
Adyansh Gupta's user avatar
1 vote
1 answer
120 views

cout behaviour when using ros2 run and ros2 launch

I am trying to print to the screen from a node for testing reasons. std::cout is what I am using, I don't want to use RCLCPP_INFO_STREAM for this. When I run my node using ros2 run, I see my prints. ...
Anirudh's user avatar
  • 11
1 vote
0 answers
51 views

DDS and Simulation Time

I am using a the eProsima Micro-XRCE-DDS agent (https://github.com/eProsima/Micro-XRCE-DDS-Agent) to send messages between my ROS2 application and the PX4 Autopilot (https://github.com/PX4/PX4-...
Biagio Trimarchi's user avatar
1 vote
1 answer
362 views

No module named 'catkin_pkg' when installing ROS 2 Iron in a conda environment for MacOS

I'm trying to install ROS 2 Iron into a new conda environment on my Mac (ARM architecture). I was following the instructions in this documentation but when I run ...
jkelle's user avatar
  • 11
1 vote
0 answers
273 views

spin_until_future_complete in an already spinning node

I’m making a program, this program has a rclcpp::node and is running with several threads. In the main thread I have executor.add_node(node); executor.spin(); this ...
Donca's user avatar
  • 11
1 vote
0 answers
21 views

Painting the spots robot visited: in Gazebo

I have a robot (let's say it is a simple 2-wheeled+caster wheel diff drive robot). It works as a vacuum cleaner of a sort: moves over the "world", leaving behind a band of "clean carpet&...
Steve Brown's user avatar
1 vote
0 answers
34 views

Dynamic textures in Gazebo

I use ROS2/Python/Gazebo Classic project with Galactic. I am looking for a way to dynamically change textures of objects. Any ideas how to do it? I know there is a video plugin, that allows ...
Steve Brown's user avatar
1 vote
1 answer
66 views

Kinematic parameters naming

When loading config files for move_group, it expects the kinematics to be loaded as a dict of type ...
leandro's user avatar
  • 98
1 vote
1 answer
158 views

Arduino IDE micro-ros two subscriber in Arduino due issue

I’m recently started working with micro-ros and also tested the publisher and subscriber with Arduino Due, but I want to add multi subscriber in my Arduino code (at-least two). but it’s not working ...
Sourabh Tiwari's user avatar
1 vote
1 answer
58 views

High frequency robot-localization output when fusing GNSS + IMU

I'm in the process of tuning a robot-localization package parameters in my sensor-fusion ROS2 package. I have a dataset from various sensors mounted on a vehicle (IMU, GNSS, Lidar, Rgb Cameras, Radar, ...
Stanislav Svědiroh's user avatar
1 vote
0 answers
333 views

What is the right way to set up system ROS2 on Windows with Conda Python?

ROS2 Humble, Windows 10 64bit. I'm a ROS beginner, but am fairly familiar with Python. While installing ROS2 for Windows, I followed all the steps for a standard system installation but did not ...
Nicholas Masso's user avatar
1 vote
1 answer
128 views

No module webots_ros2_driver

We would like to implement our controller developed by our team on CF2 simulator. We got the following error: ...
nejattukenmez's user avatar
1 vote
1 answer
178 views

Isaac ROS Nvblox Costmap Plugin For Nav2 Implementation Problems

I'm trying to use the Isaac Ros Nvblox package with a Realsense D455 depth camera to create a costmap for Nav2. Everything on the Nvblox side works, but I'm a little confused on how to use their ...
Braden Wagstaff's user avatar
1 vote
0 answers
19 views

Some help understanding and creating my own build system for ROS2

I would like to gain a greater understanding of how to build the ROS2 distribution. So far I've gotten to the point where I get that I understand that there is a suite of python scripts for generating ...
dobbelj's user avatar
  • 11
1 vote
0 answers
484 views

Debug ROS2 launch using gdb with launch-prefix

ROS2 version: humble System: ubuntu 20.04 When I cross-compile and successfully build the ROS project, I copy the "install" directory to the development board and execute ...
Ricky Yel's user avatar
1 vote
0 answers
186 views

If i use a lambda function when creating a subscription, when it will be evaluated?

I use a lambda function to add a parameter to my callback function, but this new parameter does not have the value expected. Here a code to reproduce my pb: ...
SebL's user avatar
  • 31
1 vote
0 answers
144 views

LiDAR Scan Message Dropped by Both RVIZ2 and SLAM-Toolbox Because of TF Mismatch

Here I am using ROS2 Dashing for a SLAM project with a crawler off-road robot Transbot from Yahboom.Inc. I have created a Gazebo world file to simulate the robot in Gazebo11 (Gazebo Classic, not ...
Chalie_J107's user avatar
1 vote
3 answers
44 views

Is a smaller ros2.repos option available?

I am attempting to build ros2 Foxy on Ubuntu (in a docker container). Following https://docs.ros.org/en/foxy/Installation/Ubuntu-Development-Setup.html# ...
user avatar

1
2 3 4 5
13