Questions tagged [ros2]

Please ask ROS 2 related questions on https://robotics.stackexchange.com from now on.

Please ask ROS 2 related questions on https://robotics.stackexchange.com from now on. It is now the official Q&A forum for ROS after answers.ros.org has been migrated to it.

The Robot Operating System (ROS) is a set of software libraries and tools that help you build robot applications. From drivers to state-of-the-art algorithms, and with powerful developer tools, ROS has what you need for your next robotics project. And it's all open source.

ROS 2 is a new version of that is currently under development.

Resources:

449 questions
0
votes
1 answer

How to read multiple Lidars using ROS 2 with sick_scan2 library

I use ROS2 and library sick_scan2 (https://github.com/SICKAG/sick_scan2.git), what would you recommend for reading multiple scanners and publishing them on different topics? EDIT: Solution: create an extra launch file and config file.
0
votes
1 answer

Embedding RViz2 within a custom PyQt5 GUI

I am trying to make a GUI application to control my robot. The purpose of the GUI is to be able to call appropriate services/publish some data when the button is pressed. I have been able to do these by connecting the callbacks of the button…
ssarkar
  • 33
  • 1
  • 9
0
votes
1 answer

How to best handle dependencies on topics, services etc to gracefully handle startup and error recovery? (ROS2)

Is there a standard approach we should be using to handle dependencies on topics and services? Our system has a number of nodes and some nodes provide interfaces to external sensors. We'd like to be able to cleanly handle startup and error recovery…
Chris Morgan
  • 1,277
  • 1
  • 13
  • 33
0
votes
1 answer

Ros2 not finding executables running in Docker

I'm trying to run a python script with ros2 in my docker container, and everything up to running the Script works, I can even run Gazebo via a launch file, and it works. The Error ROS gives me is the following: root@86d8bf3a6eb9:/# ros2 run…
isi_ko
  • 417
  • 1
  • 5
  • 14
0
votes
1 answer

PDDL, Plansys2 Error: decrease does not name a known token

I was working with ROS2 Planning System (Plansys2) for PDDL planning with the default planner POPF. While planning the domain with PDDL fluents, the PDDL parser and/or (not sure!) domain expert node results in an error for PDDL fluents' decrease…
0
votes
1 answer

ROS2 rosbridge_suite dlopen cannot find lib path

I've recently built ROS2 galactic for my apple silicon Mac and I want to use rosbridge_suite for this ROS. So I added the rosbridge_suite repo under the src folder and made a build again. When I launched rosbridge using command below ros2 launch…
parkjbdev
  • 33
  • 2
  • 5
0
votes
1 answer

My timing accuracy is related to the number of spin_once

My timing accuracy is related to the number of spin_once. I try to call service 'compute_rectangle_area' at a constant rate. The strange thing happens. If I set the rate to 1 Hz, It seems that I have to do spin_once four times to get correct…
Blue Bird
  • 318
  • 2
  • 9
0
votes
2 answers

ModuleNotFoundError: No module named 'sensor_msgs_py'

I am trying to run a ROS2 example taking inspiration from here. import sensor_msgs_py.point_cloud2 I can build my package without any problem with colcon build --symlink-install but when I then run my ROS node I get the following…
desmond13
  • 2,913
  • 3
  • 29
  • 46
0
votes
0 answers

colcon build error on Ros2 Foxy Unity-Robotics-Hub example

I am following ROS–Unity Integration tutorial for ROS2. I coppied unity_robotics_demo and unity_robotics_demo_msgs to my src folder from here. When building unity_robotics_demo_msgs gives me an error. I did source install/setup.bash and colcon…
pkay14
  • 25
  • 7
0
votes
1 answer

What tools does ROS2 Galactic ROS-Base Install includes?

Which tools are installed using: sudo apt install ros-galactic-ros-base In the official tutorial (https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html, ROS-Base install) is written that the installation includes: Communication…
0
votes
1 answer

What is "::SharedPtr"?

I am learning ROS2 for turtlebot3, and I have been breaking down code and saw something which I couldn't find answer for pop up. What is "::SharedPtr"? I know that it is one of types. It is used for something that returns shared pointer. What I want…
0
votes
1 answer

Unable to install ROS2 Foxy on RPI 4 running Ubuntu 21.10

I am unable to run the command sudo apt install ros-foxy-desktop. Following the guide here: https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html. I am able to complete all the steps until the final install which gives these…
urd00m
  • 1
  • 2
0
votes
0 answers

Share large arrays between python nodes

I am looking for a way to share two fairly large arrays (~1 million floats) from Tensor Flow between two ROS2 nodes. I tried publishing them over a ROS topic using a custom message type containing two arrays. I only got this to work by converting it…
Thijs Hof
  • 1
  • 2
0
votes
0 answers

Ros2 packages waits indefinitely after run- windows10

I have installed ros2 foxy on my windows 10 machine. I was able to run example nodes in the tutorial initially but now its indefinitely waiting after the ros2 run command is issued. I tried reinstalling ros2 multiple times but it didn't help. I…
SS7117
  • 33
  • 5
0
votes
1 answer

ROS2 data received at Zenoh, Not able to deserialize

I am receiving the data in sample.payload but i am not able to deserialize the data. Data…
Dheeraj
  • 1,102
  • 3
  • 14
  • 29