Questions tagged [ros2]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How to use Zero Copy / Loan API when using ROS 2 services

I can see many examples of using the Loan API in a pub/sub manner but can't see how to use it in the context of ROS 2 services (and maybe actions but that could possibly be incompatible)
user19211's user avatar
0 votes
0 answers
13 views

slam_toolbox with IntelRealsense publishing empty /map topic

I will preface that I am fairly new to ROS. I have been trying to acheive SLAM with slam_toolbox using my IntelRealsense D455 depth camera in Ros2 Humble, but /map topic output is empty, which I ...
Luke Jansen's user avatar
0 votes
0 answers
39 views

Apply force to Gazebo model trough ROS2

I am setting up some simulation for a project in which a mobile robot need to avoid some moving obstacles. I wrote the logic to control the mobile robot on ROS2 Humble and I am performing the ...
Biagio Trimarchi's user avatar
0 votes
1 answer
25 views

Calling ROS2 subscriber callback function from another function

I try to use x and y in timer_callback function but I get ‘x’ was not declared in this scope I don't know how can I do this ...
HCA's user avatar
  • 3
0 votes
0 answers
10 views

What's this error from a closed kinematic chain in gazebo?

I was implementing closed kinematic chains for my URDF by including an SDF description of the robot's links and joints within the gazebo tag. The URDF and robot ...
Victor's user avatar
  • 3
0 votes
1 answer
28 views

ROS2 Launch file is not found

I am trying to get my ROS2 project into working order. Here are the details of my setup: Building in docker based on osrf/ros:humble-desktop-full my package is laid out like this ...
KopiousKarp's user avatar
0 votes
1 answer
66 views

C++ Publisher and Subscriber in ROS2

I use Ubuntu 20.04 and Ros2 Galactic when I run the code I'm able to get subscribe information and pub this information and also I can see publisher information on topic echo continuously but when I ...
HCA's user avatar
  • 3
0 votes
1 answer
15 views

Performance of spatio_temporal_voxel_layer with LaserScan data

Today, I use the out of the box "nav2_costmap_2d::ObstacleLayer" plugin with a LaserScan message coming from my stereo camera (and so I convert depth image to LaserScan). Unfortunately, I'm ...
Antoine Van Malleghem's user avatar
0 votes
1 answer
21 views

How to change default DDS during ros2 source compiling?

I'm building ros2 humble from source, I would like to change the default DDS to rmw_cyclonedds_cpp, so with my self built version of ROS2, the user does not have to ...
Felix F Xu's user avatar
0 votes
0 answers
45 views

fatal error: tf2_geometry_msgs/tf2_geometry_msgs.h: No such file or directory

Ubuntu 22.04, ROS2 Humble I have a blickfield lidar and they provide ROS2 foxy support. I have downloaded the blickfield_ros2_driver from their website and created a repository. Aim: I want to get it ...
ASH's user avatar
  • 21
0 votes
0 answers
22 views

Ros2 build failed on mimick_vendor

I am having trouble building and installing ROS2 on my windows 10 pc. I am using the guide from https://docs.ros.org/en/humble/Installation/Alternatives/Windows-Development-Setup.html and I am at the ...
ArghWhy's user avatar
0 votes
1 answer
29 views

Mocking call to third-party module from Publisher

I have just started working with ROS2 in python on an existing project and have to write unit tests to begin with. The production code will run on a raspberry pi, but testing is being done in an ...
Nick's user avatar
  • 101
0 votes
0 answers
25 views

Differential Drive Robot with Trailer - Challenges in Integrating Physical Constraints with nav2 Planners

I am currently working on a project involving a differential drive robot towing a trailer, and I am using nav2 (ROS2) for navigation. However, I'm currently facing a challenge as the available ...
Dylan De Coeyer's user avatar
0 votes
1 answer
34 views

Unusual Robot Behavior in RViz when Launching Multiple Robots in Gazebo and ROS 2

I am currently facing an issue when attempting to launch two robots simultaneously in Gazebo Classic using ROS 2. In my setup, the first robot (Frank's Emika) is successfully launched in a Gazebo ...
Vishaal's user avatar
  • 55
0 votes
0 answers
34 views

Saved map fro Slam_toolbox won't show up in RViz

I have been following this tutorial and he is able to load his saved map back into RViz with no issues but when I do the exact same thing I just get an empty map? Not really sure what I am doing wrong ...
Balen's user avatar
  • 29
0 votes
0 answers
19 views

ROS2 Multiple Machines, Gateway + Hotspot + Ethernet (DOMAIN ID)

I hope someone can help me with my problem. First of all, my setup: PC: Connected to Raspberry Pi's hotspot (PC-IP: 192.168.12.19) Raspberry Pi: Creates a Hotspot (192.168.12.1) and connected to Wifi (...
alex288823's user avatar
0 votes
0 answers
30 views

How can I make my "two legged" modular robot to move in Gazebo (it seems "pinned" by a fixed joint and unmovable)?

I am currently working on a "two legs" modular robot (cuboctaedric units with some revolute joints) and I have to make it move in Gazebo. Here is what it looks like : I built this model ...
user38346's user avatar
0 votes
0 answers
11 views

rosbag2_py unable to import .so files that exist in lib

I am on a windows machine using a virtual machine through vscode and WSL to use ros2 (iron) so that I can write to rosbag2 files. When trying to import rosbag2_py, I get the Import Error: ...
wing-tip-vortex's user avatar
0 votes
2 answers
37 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
14 views

How to control a loop rate inside a node with RCLPY Rate object

I'm quite new to ros2 and I'm trying to understand how to control the rate of a loop inside the main method of an action server. There are many issues related to this topic but I think that none of ...
Antonio Bono's user avatar
0 votes
0 answers
23 views

ros2 python package setup for cuda

I'm trying to use a YOLOv8 model to make inference in a ros2 python node (ubuntu 22.04, ros2 rolling,Intel® Core™ i7-7700HQ CPU, GeForce GTX 1050 Mobile). After few tests, I realized that CUDA is not ...
Antonio Bono'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
0 votes
1 answer
89 views

Is it possible to run ROS2 Humble and Ubuntu 22.04 on a Jetson Nano Orin (other than through Docker)?

is it possible to run ubuntu 22.04 to install and run ROS2 on a Jetson Nano Orin? I have mainly seen solutions using Docker but it would be much easier for me to not have to go through docker and ...
Balen's user avatar
  • 29
0 votes
0 answers
19 views

Projection of boundig box from lidar frame to camera image

i am trying to project the bounding box in 3d from lidar frame to camera image in 2d. I am doing this work in ignition-gazebo simulation. so, basically there is no real hardware except my pc. there is ...
Hem92j's user avatar
  • 76
0 votes
0 answers
15 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
0 votes
0 answers
19 views

ros2 not found after ros-humble-ros-gz install

I recently created a fresh virtual machine of Ubuntu 22.04 with UTM. I installed Ignition Fortress and ROS Humble with the following command: ...
ibkid's user avatar
  • 1
0 votes
0 answers
28 views

How ROS vs. ROS 2 compare for Spot Boston Dynamics Robot

I'm wondering what are some differences between the ROS and ROS 2 packages for the Boston Dynamics Spot robot? What is their level of support? How is their functionality in relation to the official ...
nitzan's user avatar
  • 1
0 votes
0 answers
14 views

slam_toolbox receiving DDS messages in burst

In my system (ROS2 Humble, SICK lidars at 15-20Hz, Ubuntu 22, Cyclone DDS, ROS_LOCALHOST_ONLY=1), the SLAM toolbox (localization mode) is dropping lots of scan messages because it seems to process ...
PatoInso's user avatar
0 votes
1 answer
30 views

How to solve the ERROR Cannot locate rosdep definition for [PCL] in ROS2 Humble?

Im trying to use the github package for 2D LiDAR-based odometry in ROS2 humble. This is the package github Simple-2D-LiDAR-Odometry I installed the dependencies required with ...
Macedon971's user avatar
0 votes
1 answer
27 views

How to get select ROS2 network interface with xml working

I applied this solution for selecting specific networks interfaces for ros2 to use, but when specified, it still seems to end up using other interfaces. Setup I have two devices. Network settings ...
Bart B's user avatar
  • 11
0 votes
0 answers
13 views

In urdf tutorial(r2d2), rivz showed `global status:Frame [map] does not exist

Both launch files worked fine, but in rviz it showed global status:Frame [map] does not exist. Results of searching the rviz environment storage file ...
ertretff's user avatar
-1 votes
0 answers
19 views

Gazebo is not opened on ROS2 humble

These days i'm learning ROS2 humble. and i'm trying to open the Gazebo from Terminal. but the Gazebo doesn't open and nothing happens i have no idea how to solve this problem is there anyone can solve ...
PCM's user avatar
  • 1
0 votes
0 answers
24 views

ROS2 (no map recieved) SLAM with lidar

i have lidar( X2L 2D ydlidar /RPlidar A1) in hand and want to build a map with it as a first step of my project. so i used the ROS2 driver for the ydlidar to get the scan topic and slam toolbox to ...
DGrayMD's user avatar
0 votes
1 answer
23 views

How to set the value of a specific element of parameter array

Does anybody know how to set the value of a specific element of a parameter array without having to reset the whole array ? For instance modifying just the x linear max_velocity of the velocity ...
doisyg's user avatar
  • 3
0 votes
2 answers
37 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
2 answers
44 views

I am publishing Yaw. I am getting continuous rotation along Z axis

I am reading and publishing Yaw from mpu6050.but i am seeing continuous rotation along Z axis. I am using Rviz to visualize MPU data. although when I actually rotate the sensor I get rotation. below ...
amol jamble's user avatar
0 votes
1 answer
24 views

Nav2: Migrate from nav_msg::getPlan

I've been migrating to ROS Humble a ROS 1 exploration project in C++. This project considers a list of goal candidates and to evaluate them we use to call the service ...
joanvallve's user avatar
0 votes
1 answer
31 views

How to create timeout to ROS2 async client service?

Following this example how do i create an async timeout to service? I want client to wait for 5s asynchronously to get response, if it is not received log something and clear request.
JesterHead77's user avatar
0 votes
0 answers
22 views

Publishing arrays with rqt_publisher in ROS2

If I put in the field `array('f', [0.0, 0.0]), I get this: ...
Yato's user avatar
  • 11
0 votes
0 answers
13 views

ros2 topic echo for arrays

Is there an equivalent to rostopic echo /predictions/agent[0]/intention in ros2? I can use ...
WeirdRobot's user avatar
0 votes
0 answers
8 views

How to update a param defined in the SDF file?

I have a simulation with Gazebo-Garden and ros2-Humble to manage drones with a camera. In the camera sensor SDF part I have: ...
SebL's user avatar
  • 31
0 votes
0 answers
39 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
2 votes
1 answer
34 views

How to strip down the install directory of a ROS2 package

I need to deploy and update a ROS2 system to an embedded device with limited connectivity. This ROS2 system is made up of many custom packages written both in C++ and Python. At the moment I am just ...
LastStarDust's user avatar
0 votes
0 answers
10 views

Challenges in Packaging and Distributing a ROS 2 Application with C++ and Python Components

Hi! I am working on a project involving a ROS 2 application that integrates both C++ and Python components. The application is designed to visualize data from automotive radars and is developed using ...
Yernar's user avatar
  • 1
0 votes
0 answers
24 views

How to modify the parameters of ROS 2 in real-time?

We know that parameters can be adjusted dynamically in ROS, for example, when using the TEB local planner, the parameters can be dynamically adjusted. In ROS 1, I did this: ...
user38253's user avatar
0 votes
1 answer
41 views

How to integrate IMU9250 with RPLidar A1M8 using ROS 2 Humble

I am trying to integrate IMU9250 with RPLidar A1M8 using ROS 2 Humble. Therefore, I have taken the following steps: Installed Ros2 humble on Raspberry Pi 4 Installed RPLidar A1M8 Launched the RPLidar ...
SAQI HUSSAIN's user avatar
0 votes
2 answers
52 views

Nav 2 on Ros foxy or humble

I am a beginner in robotics and have a few questions and problems that I could use help with. First, I have a robotics competition in a few weeks, and I have a Jetson Nano running ROS. I was using ROS ...
MIS Robotics's user avatar
0 votes
0 answers
15 views

How to load rosdil_fault_generators through terminal?

After going through the tutorials up to the intermediate in Humble, I switched to Iron, thinking I would review the tutorials. Unfortunately, while building the ...
dennis's user avatar
  • 1
0 votes
0 answers
50 views

Deploying a ROS2 application as a standalone (self-contained) package on Windows

If the developer wants to send a ROS2 application to other (none technical) users, how would they go about packaging everything (dependencies, ROS2, DDS) into one standalone executable, or set of ...
Blue7's user avatar
  • 101
0 votes
1 answer
55 views

ros_gz_bridge does not publish on ros2 topic

I am running ros_gz_bridge to read some data from Gazebo, in particular I have run: ...
Biagio Trimarchi's user avatar

1 2
3
4 5
57