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
2
votes
2 answers

Installator should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+

I am trying to local install through pip using the following command: # while positioned at the repository's root pip3 install -e installator and getting the following error: Installator should either be a path to a local project or a VCS url…
Duttonide
  • 21
  • 1
  • 2
2
votes
0 answers

How to use a ros2 service to trigger an asyncio non-blocking function (without Actions)

The problem I am having is that: To start an async function in the background I need an asycio event loop. This event loop usualy exists in the main thread, and when started, blocks the exeuction of that thread (i.e lines of code after…
2
votes
1 answer

ROS2 Eloquent installation failed in Ubuntu 18.04.4 LTS

Referring to this link, I am installing ROS2 Eloquent into my Ubuntu 18.04.4 LTS. My system's information is as below (via uname -a) Linux myname 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux I…
albertleng
  • 61
  • 7
2
votes
0 answers

Unable to compile C++ program with tf2_ros header inclusion

I have installed ros2 dashing diademata. I wrote a ROS2 node using C++14. I would like to read static_tf by creating a buffer and TransformListener I am getting the following error when I include, #include "tf2_ros/buffer.h" If I do not include, I…
confidential
  • 61
  • 1
  • 3
2
votes
1 answer

Destructor of shared_ptr Object never called

I create an object in a main function as a std::shared_ptr object and want to save some information of it in its destructor. However I found out, that the destructor of the object is never called. Can I manually ensure, that the destructor is…
LeoE
  • 2,054
  • 1
  • 11
  • 29
2
votes
1 answer

How to link shared library in Ament Tool ROS

I am building my packages with ROS ament tools. structure is as below LibA (build as shared library) LibB (depends on LibA & build as shared library) AppB (depends on LinB) in package.xml of LibB. I specified dependency as ... package.xml (under…
Jai
  • 1,292
  • 4
  • 21
  • 41
2
votes
1 answer

ROS2 colcon build not showing any error messages in windows

While building the ROS2 publisher on the windows by using colcon build, there are no error messages shown for debug, only shown failed or finished. I have try using "colcon --log-level info build" or "colcon --log-level debug build", but still in…
Ting-Wei Chien
  • 149
  • 1
  • 2
  • 9
2
votes
1 answer

Publishing sequences/objects through RTI Conector to ROS2 applications

I am interfacing ROS2 with a native RTI DDS Connector for Python where I am publishing messages in RTI connector and subscribing in ROS2. I have the following message structure for the message named DetectedObjectList: int16 id // An array of…
Vishal Rawat
  • 325
  • 1
  • 3
  • 19
2
votes
1 answer

Interfacing a native DDS system with ROS2

To communicate to a ROS2 based publisher and a RTI Connext based subscriber, both of them need to have a compatible QoS settings. I am using RTI Connector for python and using the XML Application Creation to run the subscriber. I run a talker_py in…
2
votes
2 answers

Communication between RTI Connext DDS and ROS2

In ROS2, Using qos_profile = rmw_qos_profile_system_default will use the default xml configuration from the installation directory of the DDS vendor, RTI CONNEXT in this case. Looking at this documentation from RTI, it means that the file…
Vishal Rawat
  • 325
  • 1
  • 3
  • 19
2
votes
1 answer

Setting endpoints in pub&sub in rclpy ROS2

I am trying to run the demo example from rclpy client library . My question is I am able to run the publisher and subriber example from the client library on the same machine. But Now I want to run these two on different machine for example I want…
1
vote
0 answers

ROS Client doesn't receive response

I'm a beginner in ROS, and I tried to create a client that requests a service to add 2 numbers generated randomly every 2 seconds. The service receives the request and sends back the result, but it seems that the client is not able to receive it.…
Oscar Pf
  • 11
  • 2
1
vote
0 answers

docker: Error response from daemon: unknown or invalid runtime name: nvidia

I am trying to replicate this on my local machine. https://github.com/NVIDIA-ISAAC-ROS/isaac_ros_visual_slam#quickstart. I followed the steps and reached an error after running the following script. cd ${ISAAC_ROS_WS}/src/isaac_ros_common && \ …
1
vote
1 answer

Run colcon test with GDB backtrack

I would like to use the colcon test functionality to test multiple colcon packages at once by executing the following command from the terminal. colcon test --event-handlers console_direct+ --return-code-on-test-failure --packages-select package1…
Manumerous
  • 455
  • 6
  • 21
1
vote
1 answer

Data from micro-ros can't be received (different docker containers)

I try to publish data from a micro ros docker container and receive it in a ros2 humble docker container. Therefore i have written my own dockerfiles and docker-compose.yaml. But the listener doesn't receive data and when i run "ros2 topic list" the…