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

Getting "cannot copy file" error during Colcon build

I have a Catkin workspace that I am trying to move over to the Colcon build system. I've been having some trouble with modifying my CMakeLists to accommodate this, and am currently seeing this error when running colcon build. CMake Error at…
Karl Swanson
  • 99
  • 1
  • 7
0
votes
1 answer

How to know if I have DDS installed?

I'm a bit of a noob on ROS2 and I'm starting to learn about the DDS protocol and its implementation on ROS2. So far, I've read that ROS2 already comes with eProsima Fast RTPS, however, I would like to make sure if this is really installed or not.…
user13005310
0
votes
2 answers

ROS2 + Qt: any good solution?

I've built a Qt GUI in python from code (not from the Qt editor, so I don't use qml files). I want it to be able to subscribe to ROS2 topics and update the GUI according to the messages received, and publish data when a button is clicked. The…
robbertfm
  • 9
  • 1
  • 2
0
votes
1 answer

build a docker image ros2 , when try tu run . install/setup.bash in dockerfile no works

i have the next problem: i try to build a docker image with ros2, in which a code package is downloaded which will be built using the colcon build method. but when I try to run last of. install / setup.bash doesn't work for me. I already tried to…
0
votes
1 answer

How to correctly implement the ROS2 architecture (rclcpp, rcl, rmw)

I am a beginner with ROS2 and C++ and I can use some help understanding how the architecture of ROS 2 works. I want to implement a QoS-event into a simple chatter program and with my basic knowledge I can make following graph: CODE (publisher.cpp)…
jlepers
  • 11
  • 2
0
votes
1 answer

Dynamically setting a ROS2 parameter using launch file?

There are a bunch of resources that describes setting a parameter on node startup using a launch file.( How to launch a node with a parameter in ROS2?) However this will not trigger the dynamic reconfigure callback: set_on_parameters_set_callback .…
Andreas Klintberg
  • 440
  • 1
  • 11
  • 29
0
votes
1 answer

Member function with strange type causing callback function mismatch

I have a class where declaration and implementation are in the .cpp file. It has a member function called imageCallback(), used in the constructor as seen below namespace viso2_ros { class MonoOdometer : public rclcpp::Node, public…
Andreas Klintberg
  • 440
  • 1
  • 11
  • 29
0
votes
0 answers

Cannot build custom action in ROS2

I want to create a custom Action client/server for my ROS2 project in Ubuntu 18.04. I am following the answer from https://answers.ros.org/question/3234... in order to create a ROS2 pkg for the custom action. My package looks like…
Hector Esteban
  • 1,011
  • 1
  • 14
  • 29
0
votes
1 answer

libboost_python3 missing dynamic link to Python?

I've been struggling for days to get image_proc for ROS2 going. It links to vision_opencv which in turn links to libboost_python3. Now trying to run this I get the familiar: dyld: Symbol not found: _PyBaseObject_Type Referenced from:…
Andreas Klintberg
  • 440
  • 1
  • 11
  • 29
0
votes
1 answer

How to read any ros message using string

I am trying to write a subscriber class which subscribe to a topic and read messages published for that topic. As I know I need to pass a callback function with message structure to read received messages. But this approach is not generic. Is there…
Jai
  • 1,292
  • 4
  • 21
  • 41
0
votes
1 answer

Is it possible to launch multiple nodes from different packages in ROS2 (Crystal)?

I have 5 ros2 packages and each package contains one or two nodes. Is it possible to launch all nodes from different packages at once? If possible how I can do it? are there any git repo with examples for this? Thanks in advance
Skanda
  • 145
  • 4
  • 14
0
votes
1 answer

ROS2 action execute callback never exits

I am trying to implement ROS2 action client and server as given in the example repo: https://github.com/ros2/examples/tree... (server.py and client.py). Everything seems working but on the client side 'get_result_callback' is never getting called.…
Skanda
  • 145
  • 4
  • 14
0
votes
2 answers

How catkin is used with ROS2?

I am currently using a ros package called smach with melodic. However, now I need to upgrade my melodic version to crystal to support ROS2 since the project uses DDS. SMACH package is dependent on catkin. Is it possible to create a catkin workspace…
Skanda
  • 145
  • 4
  • 14
0
votes
1 answer

C++ creating stream function like ROS_INFO_STREAM(var1 << var2 <<...)

i am working with ROS and my task is to migrate existing Projects from ros1 to ros2. In ros1 stream functions like ROS_INFO_STREAM(String << variable << ...) exist but not in ros2, because they are not implemented yet in the rclcpp. My idea is to…
Steffan
  • 1
  • 2
0
votes
1 answer

How to compile ROS2 for another OS

I'm writing my master thesis on Computer Engineering about ROS2. I learned a lot thanks to tutorials on https://index.ros.org/doc/ros2/Tutorials/. I tried ROS2 on my Ubuntu 18 and 16 machines but I would like to insert in my thesis a general guide…