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
14
votes
4 answers

What's the difference between ROS2 and DDS?

ROS2 is a distributed architecture using publisher/subscriber messaging between nodes. ROS2 has taken a different approach in its messaging layer and now employs the industry standard called Data Distributed Services (DDS). But, DDS is a middleware…
Jams.Liu
  • 493
  • 1
  • 4
  • 13
6
votes
1 answer

ROS2 topic list does not show all available topics running on network

I am working with ROS2, I got the situation that 'ros2 topic list' doesn't show all topics on the ros2 network. The above command only showed : I think that there's certain mismatch in configuration with DDS distros. I studied around Internet and…
Thảo M. Hoàng
  • 1,224
  • 3
  • 20
  • 42
6
votes
3 answers

Import modules in package in ROS2

I have created a package for ROS2 and I have added a Python repository I downloaded. The problem I am having is that in the original repository the modules from the own repo were imported directly while in mine I have to import them adding the ROS2…
Hector Esteban
  • 1,011
  • 1
  • 14
  • 29
5
votes
4 answers

ROS2 ImportError: cannot import name 'generate_py' from 'rosidl_generator_py'

I got an ImportError while trying to create a custom interface following the ros2 tutorial Creating custom msg and srv files. The project looks like this: src/tutorial_interfaces/ ├── CMakeLists.txt ├── include │   └── tutorial_interfaces ├──…
twildhage
  • 51
  • 1
  • 4
5
votes
6 answers

Importing Rosbag in Python 3

I'm trying to read rosbag files from Python 3. I installed ROS2 (Eloquent Elusor), which should support Python 3. When I run import rosbag bag = rosbag.Bag('test.bag') from Python 2.7, it works. When I try the same in Python 3, I…
Lovro
  • 712
  • 1
  • 10
  • 20
5
votes
2 answers

ROS2: How to pass arguments from one launch file to a child launch file

I have a main bringup.launch.py launch file of which the launch descriptor includes child.launch.py as a child launch file like this: from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from…
Floris Devreese
  • 3,127
  • 2
  • 21
  • 31
5
votes
1 answer

ROS image topic framerate is extremely low

I'm trying to get VREP vision sensor output processed with opencv via ROS api. I did manage to set up scene and get scripts running, but the problem is that I get somewhat like 4-5 fps even without actual processing (currently I just push images…
Roman
  • 1,396
  • 4
  • 15
  • 39
5
votes
1 answer

ROS2: ImportError: No module named genmsg

I starting with ROS2 which is currently in the alpha phase. While building the package ros1_bridge I got this error: Traceback (most recent call last): File "bin/ros1_bridge_generate_factories", line 11, in from ros1_bridge import…
Alex44
  • 3,597
  • 7
  • 39
  • 56
4
votes
3 answers

Could NOT find Boost (missing: python3) (found version "1.76.0") - CMake Windows

I need help solving this cmake boost python3 find problem when trying to compile cv_bridge from ros2, which uses a build tool called colcon and in turn CMake. The colcon build error message: > colcon build --symlink-install --merge-install ... …
Lora
  • 65
  • 1
  • 5
4
votes
2 answers

Problem with instalation ROS 2 "E: Unable to locate package ros-foxy-desktop"

I try to install ROS 2 on ubuntu focal fosa (20.04). I went along with this instruction, but after implementation this command: sudo apt update I got this problem: Hit:1 http://ru.archive.ubuntu.com/ubuntu focal InRelease Hit:2…
4
votes
1 answer

How to read data from rosbag2 in ros2

I am writing a program to read data from rosbag directly without playing it in ros2. Sample code snippet is below. The intention of the code is that it checks for a ros2 topic and fetches only message in that topic. I am not able to fetch the data…
confidential
  • 61
  • 1
  • 3
3
votes
0 answers

How to log limitation and rotation to ROS2

I want to apply limitation to the size, number and rotation of log files that will be saved under .ros/log. People mentioned this issue here but I could not find any example/instruction for that so any idea/suggestion/sample would help. The target…
Keivan
  • 1,300
  • 1
  • 16
  • 29
3
votes
1 answer

Why the number of frame rate of topic is differnet from realsense image fps in ROS2

I tested if my ros2 node was subscribing exactly to /camera/depth/image_rect_raw topic from reassense ROS2 node.I attatched a realsense camera to TX2 board and configured as 15 fps. However, I expected that the rate of subscribing…
Jaehyun Lee
  • 247
  • 1
  • 2
  • 4
3
votes
1 answer

type hint for class type as argument

In the python client library of ros2 there is a function that accepts the class type as an argument (not an instance of that class, but the definition). For example from std_msgs.msg import String #String is python class i.e, #class String: # …
Blue7
  • 1,750
  • 4
  • 31
  • 55
3
votes
1 answer

Why can't I use ament_cpplint with cpplint plugins for various IDEs?

I am working with C++ code with ROS2. ROS2 has code style standards and one of the recommended linters is ament_cpplint, which is slightly different from cpplint Most IDEs/Editors for C++ (Clion, Atom, VS Code, Sublime Text) have plugins for cpplint…
ICRed
  • 31
  • 2
1
2 3
29 30