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
vote
0 answers

ros2 humble rqt drop-down menu

I am trying to use parameter in ROS2. In ROS1, we can use parameter generator to edit cfg file and generate drop-down menu in rqt. drop-down menu in qrt at ros1 drop-down menu in rqt But I don't know how to generate in ROS2. I have tried parameter…
Bryan Liu
  • 13
  • 4
1
vote
0 answers

rviz with ROS2 can't connect to the X-server VcXsrvr WSL2 Win10

I apparently managed to fix or "to clear" an error: "Could not contact ROS master at [http://localhost:11311], retrying..." which appeared in an X-Window message box after calling rviz. I found that ROS_IP and ROS_MASTER_URI env.vars have to be…
Twenkid
  • 825
  • 7
  • 15
1
vote
0 answers

ERROR:Could not find the colcon-terminal-notifier.app in the install prefix '/usr/local

ERROR:Could not find the colcon-terminal-notifier.app in the install prefix '/usr/local Operation OS: MacOS Monterey ROS2 Version:Foxy When I use the command "colcon build",The terminal post the…
nerv_zmg
  • 11
  • 1
1
vote
2 answers

Set Ros2 Parameter from another Node

I have two nodes in c++ that use the same parameter. If I want to reconfigure the node1 parameter_x via the rqt, it would be great if the parameter_x of the node2 is also changed automatically. Is there a possibility for this? i have try in…
Flammel
  • 41
  • 5
1
vote
2 answers

How to list nodes in ROS with `rclpy`?

I want to obtain the same result as ros2 node list using rclpy but I haven't found a way yet. Here is what I have tried. import rclpy rclpy.init() node = rclpy.create_node("list_nodes_example") # Use the get_node_names_and_namespaces() method to…
Eduardo Reis
  • 1,691
  • 1
  • 22
  • 45
1
vote
2 answers

ROS2-Gazebo: show image on the side of a cube

I am trying to display aruco marker on one (only one) side of the cube in Gazebo. I am using the following model, that is pasted in a world file: true
Steve Brown
  • 369
  • 1
  • 3
  • 12
1
vote
2 answers

How to communicate between ros2 running on a docker container and another one running directly on Linux?

I have a problem in communicating between 2 ros2 environments :one running on a docker container hosted on a macos and the second one running directly on a Linux. I set up the env ROS_DOMAIN_ID=5 for both. I set up as well the port when running the…
Andi
  • 43
  • 9
1
vote
0 answers

In ros2_control,the foxy version, how can the ros2_control_node read the hardware_interface and controller info?

here is the source code of ros2_control_node: int main(int argc, char ** argv) { rclcpp::init(argc, argv); std::shared_ptr executor = std::make_shared(); std::string…
Jakefish
  • 11
  • 1
1
vote
0 answers

cannot use ydlidar on ros2 rolling

I downloaded the official package to use YDlidar X4 in ROS2 rolling, but every time i run ros2 launch ydlidar_ros2_driver ydlidar_launch.py, the following error occurs: INFO] [launch]: All log files can be found below…
the DEV
  • 11
  • 2
1
vote
0 answers

Controller manager not available in ROS2

Hi I have added control plugin in robot arm urdf then created launch file but when I run launch file gazebo and robot arm model open but I get an error like below. How can I solve this problem? [robot_state_publisher-3] Parsing robot urdf xml…
gurselturkeri
  • 71
  • 1
  • 8
1
vote
0 answers

not found: "package 'turtlebot3_gazebo' not found, searching: ['/opt/ros/humble']"

on apple Silicon CPU(M2) Ubuntu Linux - Jammy Jellyfish (22.04 arm64 version) I install like docs ROS2 humblewith-full every step then install sudo apt install ros-humble-turtlebot3* Setup ROS 2 Humble Environment for bash How to solve this problem?…
Tx3z
  • 11
  • 1
1
vote
1 answer

Rviz : camera_depth_frame message filter dropping message because the queue is full

I am using ros2-humble distro trying to get it working with slam_toolbox. I have converted the depth camera image raw to laserscan using the package from https://github.com/ros-perception/depthimage_to_laserscan/tree/foxy-devel. I can see the topic…
jee wooo
  • 11
  • 2
1
vote
0 answers

How to get image and pose streams at maximum rate with librealsense using ROS2?

Camera Model T265 Firmware Version 0.2.0.951 OS Linux Ubuntu 20.04LTS Kernel Version 4.9.253 Platform NVIDIA Jetson SDK Version 2.53.1 Languace C++ Segment Robot We are using ROS2 to get streams from librealsense and publish them on topics. We tried…
1
vote
0 answers

Using Python's asyncio 'await' in ros2 callbacks: 'RuntimeError: await wasn't used with future'

I'm trying to call an asyncio async function from a ROS2 callback as seen in the code below. The callback always throws an error 'RuntimeError: await wasn't used with future' and I can't figure out why. It doesn't seem to have this error when…
1
vote
0 answers

rpath ignored after multiple libraries

I'm working on integrating robot operating system (ROS2) into a plugin for a larger program that erases the LD_LIBRARY_PATH before the plugin is called. I'm doing some preliminary tests to try using the rpath to specify the location of the ROS…
codegen
  • 118
  • 5