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
-1
votes
1 answer

SLAM Toolbox Mapping Issue?

I am currently using ROS2 Humble and RP Lidar. I want to use SLAM with this so I am trying the Slam toolbox. So first I am doing: ros2 launch rplidar_ros rplidar.launch.py Then in another terminal, I am doing: ros2 launch slam_toolbox…
kathan
  • 1
-1
votes
1 answer

How to convert byte array to sensor_msgs.msg.CompressedImage in C#?

I am trying to receive camera image from Unity and send it to ROS2 as an image message like sensor_msgs.msg.CompressedImage. In the part of TO DO:, I need to define a function to convert byte array to image messages. How should the ByteArrayToImage…
tgr
  • 58
  • 5
-1
votes
1 answer

IndexError:: array index out of range

python3 def __init__(self): super().__init__('object_tracking') # Declare ROS parameters self.declare_parameters(namespace='', parameters=[('qos_length',0), …
-1
votes
1 answer

Shared library symbol lookup template instantiation

I'm using a shared library utility that looks up symbols from a shared library (on non-windows platforms using GetProcAddress). This works for normal functions. However, I need a function that is a template instantiation in a namespace. I have…
Stefan Fabian
  • 498
  • 4
  • 21
-1
votes
1 answer

The '<' operator is reserved for future use command powershell

I'm trying to install ROS 2 in my computer and I need to run the following command: choco install -y -s asio cunit eigen tinyxml-usestl tinyxml2 log4cxx However the message I get when I run it is this: choco ~ The operator…
Pedro Leal
  • 19
  • 2
-1
votes
1 answer

How to create a service-on-request package program using ROS2?

System Configuration: OS - Ubuntu 18.04 (Bionic Beaver) ROS - ROS2 Bouncy Language - Python Problem - So I have a program that should only run and return values whenever a request is sent to the program. How can I create such a package using ROS2…
Amrit Das
  • 474
  • 1
  • 6
  • 13
-2
votes
2 answers

Displaying two robots in the same RViz window

Could anyone please tell me, how to display two robots in one instance of RViz? This question can be broken into two: How can I add a robot to RViz (using UI? Using command line? Using config? What if I have 100 robots, or variable number of…
Steve Brown
  • 369
  • 1
  • 3
  • 12
-2
votes
1 answer

ROS2 C++ cv::VideoCapture

`hi cam_reader.hpp #include "rclcpp/rclcpp.hpp" #include "opencv2/opencv.hpp" #include "sensor_msgs/msg/image.hpp" #include "cv_bridge/cv_bridge.h" class CamReader : public rclcpp::Node { public: CamReader(); cv::VideoCapture…
-2
votes
1 answer

Error: "self" is not defined error on VSCode on Ubuntu

I'm following a tutorial on understanding writing python publisher in ROS2. This is an example that I'm creating. The code does not seem to have any errors but in vscode, the self word is underlined in red and when I hover the mouse it shows that…
Dinoj
  • 17
  • 6
-2
votes
1 answer

How to build a drone with ROS2 and (indoor) navigation function

my name is chaos and I am learning how to control a drone with ROS2. My current goal is to master indoor drone navigation. I don't have any experience with this, so I found and tried The Construct's ROS Q&A series「2D Drone Navigation」. It's very…
chaos
  • 1
  • 3
-3
votes
1 answer

Would you help in running robot state publisher?

I had been getting the error I tried to run robot state publisher with this command: ros2 run robot_state_publisher robot_state_publisher --ros-args -p robot_description:="$( xacro -/example_robot.urdf.xacro )" according to this tutorial by…
1 2 3
29
30