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
45 views

Ros2 can not import python modules located in subfolders

I am new to use ROS. I use Ros2 Humble on Ubuntu 22.04. I need to import some python codes/modules from different nested folders (or nested nested folders) to a Ros2 python node. The Ros2 node (...
Abbas's user avatar
  • 1
0 votes
1 answer
31 views

How to use ros2_control with actual hardware communicating via etherCAT?

I am learning ros2_control with the real hardware. I need some help writing hardware interface for the current setup. I do not have experience writing on the communication side of the real hardware. ...
Hem92j's user avatar
  • 76
0 votes
1 answer
18 views

"spawn_entity.py" executable not found

i have created a workspace in ros2 humble in Ubuntu 22.04 and i am trying to spawn the robot in gazebo empty world using the following command: ros2 run gazebo_ros launch spawn_entity.py -topic ...
Yukta Dodia's user avatar
0 votes
0 answers
8 views

Using Gazebo headless mode in a GPU cluster

I have a question about image rendering in headless mode in a cluste. My task is I want to train a RL agent in the cluster. I use ROS2 and gazebo simulator. Since the algorithm needs to constantly ...
malwaru's user avatar
0 votes
1 answer
28 views

How to add custom messages and services to ros_gz_bridge

I would like to add custom messages and services to the gazebo ros bridge. But I am not sure what the best approach would be and miss a bit of documentation on how to achieve this. For the sake of ...
Nyquist's user avatar
  • 101
0 votes
0 answers
15 views

Installing pcl_ros from binaries does not install executables in /opt/ros/lib

I wanted to experiment with point cloud filters from pcl_ros in my ROS2 project. Hence, I have added pcl_ros as an ...
shri_ram's user avatar
0 votes
1 answer
35 views

Can’t see debug messages using RCLCPP_DEBUG

I can’t see messages using RCLCPP_DEBUG by terminal and rqt, but I can using other levels of verbosity( INFO, ERROR, FATAL…).Selecting debug in rqt to see those messages doesn’t work either. I’m using ...
pgarcia-dev's user avatar
0 votes
0 answers
20 views

Collision Detector not available in ROS2 Humble

The capabilities of collision detector are available only ROS2 Iron Irwini onwards. Was wondering if ROS2 humble would ever get it? Also curious why is it not supported for ROS2 Humble, if there's any ...
Bhooshan Deshpande's user avatar
0 votes
2 answers
90 views

ROS 2 Package Executable Not Found by ros2 run

Environment: Operating System: Ubuntu 22.04 ROS Version: ROS 2 Humble Hawksbill Issue: I have created a ROS 2 package named robot, and I am able to build it ...
Mateusz's user avatar
0 votes
1 answer
29 views

Ubuntu packages: gazebo vs gz-harmonic

I have installed ROS2 humble + Gazebo harmonic for playing with Ardupilot. Now I want to follow several tutorials to make myself more familiar with ROS2. One asks me to install packages like ...
flyasky's user avatar
0 votes
1 answer
24 views

Reading a ros2_control xacro file in a regular node

I have a xacro file that I used for a specific piece of hardware. I figured out how to store custom data structures within the gpio framework within ros2_control example: ...
Seth's user avatar
  • 103
0 votes
1 answer
10 views

downloading baxter sdk on ros humble

I need some help, currently following this tutorial (https://www.youtube.com/watch?v=J47SKs0QRyU) to download the baxter sdk, everything is fine until i reach the catkin_make part , realised ...
depressedengineer's user avatar
0 votes
1 answer
32 views

RobotHWsim how to use it? ROS2 Humble

I'm working with an Ackermann car-like robot. I have an issue with the tf in RVIZ because to make an Ackermann steering you have to make a virtual link due to ROS2 doesn't allow yet 2 dof in a joint. ...
dani santana's user avatar
0 votes
0 answers
9 views

Migrating a Gazebo Classic plugin library from ROS1 to ROS2

I am developing an underwater vehicle using ROS2 and I am building a simulator using Gazebo classic. I need UUV specific sensors including DVLs and depth sensors. I have been unable to find compiled ...
Gideon's user avatar
  • 1
0 votes
0 answers
16 views

ROS2 serial driver with ROS message subscription

I need to set up a ROS2 python serial device driver that also subscribes to a ROS message. For serial drivers the only publish messages I set up the serial input in a select call like this. Here, the ...
Chris's user avatar
  • 1
1 vote
2 answers
27 views

Multiple discovery servers on the same network

Is there a way to enforce that clients can only send/receive messages to each other if they have the same discovery server URI? I am trying to setup a classroom environment where on a single WLAN ...
Sterling Mcleod's user avatar
0 votes
0 answers
26 views

Why is there no laser_scan_matcher in ROS2?

I was just wondering why there has not been an official port of the laser_scan_matcher to ROS2 with binaries. It seems like such a useful package to improve bad odometry. Is this functionality not ...
aladin6060's user avatar
0 votes
1 answer
20 views

colcon build exclude package

Can it be possible to exclude a package from build process, my modifying its CMakeLists.txt So the catkin build command will skip that directory? Best Regards, C.
Can Altineller's user avatar
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
0 votes
2 answers
40 views

Error: Loader for controller 'asc' not found

I have a ros2 project which is running in one system(with ros2 humble) perfectly but i am getting error on other system(with ros2 foxy). I need to run it on 2nd system as my first system dosen't has a ...
Pratham's user avatar
  • 25
0 votes
1 answer
59 views

Installing ROS2 Humble on Ubuntu Mantic

I got this error while trying to install ros2 humble: ...
Joachim Chisom's user avatar
0 votes
0 answers
13 views

MicroROS and Multithreading - freeRTOS vs Zephyr

I would like to get to know MicroROS. Therefore I worked with one of the recommended boards (Olimex STM32-E407) for the last weeks. And I have a few questions. I really want to know if MicroROS is ...
Johannes's user avatar
0 votes
0 answers
9 views

RCLCPP ROS2 check if node is already running

I have noticed my node can be re-run as a second time. While using python before, this was not a problem, as when you launched the node the second time, it would return an error. What is the best ...
Can Altineller's user avatar
0 votes
0 answers
13 views

Error Code 13 Msg: Directory dosen't exist...when starting Gazebo with .world file including .sdf-models

i have trouble running a world with Gazebo (Version 11.10.2)... When i run the world with the command:gazebo test.world i receive the error: ...
Henrik's user avatar
  • 1
0 votes
0 answers
12 views

Question about timeout_ns parameter in rclc_executor_spin_some

I have a question about the timeout_ns parameter of the rclc_executor_spin_some function. As far as I know, the timeout_ns parameter of rclc_executor_spin_some is interpreted in two ways. Can you tell ...
YouJungChoi's user avatar
0 votes
1 answer
36 views

Subscriber in Hardware Interface (ros2_control)

Is there any example for adding subscriber to hardware interface ? Publisher works fine. My code is below, I dont know where its going wrong but unable to get values after publishing using CLI. .hpp ...
Ani's user avatar
  • 17
0 votes
1 answer
37 views

Make the robot stop if it finds an obstacle in front

I am using the navigation stack (nav2) without problems, but I would like to understand how I can make the robot stop from its path if it finds a dynamic obstacle in front of it (at a minimum distance ...
Supermax182's user avatar
1 vote
1 answer
63 views

Cancel request policy in ROS2 for specified goal id and timestamp seems odd

From the Action design doc: https://github.com/ros2/design/blob/gh-pages/articles/actions.md ...
Jake's user avatar
  • 13
0 votes
0 answers
42 views

Compiling ROS2 from source on RPI5 with Ubuntu 23.10

I have setup an LXD instance with ubuntu 23.10, and tried to compile ros humble from source as described in https://docs.ros.org/en/eloquent/Installation/Linux-Development-Setup.html and the step: ...
Can Altineller's user avatar
0 votes
1 answer
30 views

how to get information about goal of action

I learned to generate trajectories while working with ros2_controller. I want to take a closer look, find the goal in /execute_trajectory/_action/ I can only check ...
ertretff's user avatar
0 votes
1 answer
31 views

Nav2 Collision Monitor: how to recover after stop

I use the Nav2 Collision Monitor as a kind of a (high level) security for my robot. But after a stop the only way I found out is to send velocity commands direct to the robot. So my question is there ...
MichaelT's user avatar
0 votes
1 answer
17 views

Warnings while trying to build the code in the workspace of crystal ros2

...
Wraith's user avatar
  • 1
0 votes
0 answers
6 views

Error while building the code on workspace of ros2 crystal on ubentu 18.04

am trying to build ros2 crystal ws on ubentu 18 but i got this: cmd ~/ros2_crystal$ vcs import src < ros2.repos error: usage: vcs import [-h] [–input FILE_OR_URL] [–force] [–shallow] [–recursive] [–...
Wraith's user avatar
  • 1
0 votes
0 answers
12 views

Map not updating when using slam_toolbox in ROS2 Galactic

I am currently learning mapping(slam_toolbox) and navigation(nav2) in ROS2 Galactic, using the gazebo turtlebot3 simulation. In specific, I am trying to implement lifelong mapping for my turtlebot3 ...
oblivious_turtle21's user avatar
0 votes
1 answer
40 views

How to wait for an action to be complete inside a callback?

I'm controlling a mobile robot and I'd like to set up an action (call it back_and_forth) that commands the robot to move forward 1 meter, then move backwards one meter. The interface that I'm using (...
Carter Sifferman's user avatar
0 votes
0 answers
10 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
0 votes
2 answers
69 views

ROS2 Foxy | Nav2 returns "send_goal failed" error

I have been following this youtuber "Articulated Robotics" for implementing my autonomous robot. Everything has gone good so far including slam The only error is nav2 randomly works (1 out ...
Umesh's user avatar
  • 1
0 votes
0 answers
70 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
2 answers
147 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
  • 25
0 votes
0 answers
18 views

When will subscriber status callbacks be available in ROS2?

What are the plans for implementing rclcpp subscriber status callbacks (connect/disconnect) in ROS2? I found this ROS1 feature quite handy. Note that this question has been asked before but since that ...
Bernd Pfrommer's user avatar
0 votes
0 answers
17 views

ROS 2: Controlling Timer Callback Execution Threads

I have a ROS 2 node that manages a simulation instance. I wish to manage timers for stepping physics and rendering camera views of the simulation environment, where callbacks for either functionality ...
Peter David Fagan's user avatar
0 votes
1 answer
18 views

ROS2 : ZED 2i Pointcloud filtering

I am trying to filter out white points from the ZED2i published pointcloud and I am encountering a lot of issues. ...
Harsh Shah's user avatar
0 votes
0 answers
51 views

Webots ros2_control and controller_manager issue

I have been trying for the past week searching forums and documentation to solve this issue. I am trying to make a simple simulation using ros2 humble and webots 2023b. I had switched from Gazebo ...
hylander's user avatar
0 votes
1 answer
25 views

Problem driving my jackal robot

I have a Clearpath jackal robot and I am having troubles with driving it using keyboard control. Whenever I run the command: "ros2 run telep_twist_keyboard teleop_twist_keyboard" I don't get ...
Austin Wohleb's user avatar
0 votes
1 answer
42 views

Converting PointCloud2 to Structured NumPy array in ROS2

I am trying to convert PointCloud2 data to numpy array. I am converting it with package: sensor_msgs_py.pointcloud2 using the method: read_points I always get an error that Cloud is not a sensor_msgs....
Doki's user avatar
  • 1
0 votes
1 answer
20 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
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
0 votes
0 answers
17 views

reset model position in ros2

I want to reset the position of robot under certain circumstances. I am trying to do it with python node. I know we call '/reset_world" service to to this but i am unable to call it with python. ...
Pratham's user avatar
  • 25
0 votes
1 answer
29 views

How to query Quality of Service (QoS) Parameters of a ROS 2 Service from Command line

I know how to list ROS 2 services using the following command: ros2 service list I also know that we can display the QoS properties of a ROS 2 topic using the ...
NINAD PREMDAS RATHOD's user avatar
0 votes
0 answers
17 views

Data on real-time threads

I'd like to see a tutorial or baseline document covering optimization in Node. I learned that priority tasks or background tasks are performed depending on importance. Can you tell me where I can find ...
ertretff's user avatar

1
2
3 4 5
57