Skip to main content

New answers tagged

-1 votes

colcon build on ROS2 humble outputs "listing git files failed - pretending there aren't any"

You may not be able to remove it with pip3 uninstall, do sudo apt autoremove.
Myrat Mammed's user avatar
0 votes

How to migrate ROS1 code that passes ros::Nodehandle to functions inside constructor

This is a commonly encountered issue. You are right in that shared_from_this cannot be called from within the constructor. There are multiple options available: Is ...
abhishek.goudar's user avatar
1 vote

ROS2 Wrapper for a Python-based Sensor

Going by the description of your problem, and taking some liberties from my side, the following is a "quick-n-dirty" solution that creates a ...
Mohammed Osama's user avatar
2 votes

Creation of ROS2 subscriptions dynamically in loop vs manually

OP's answer from a now-deleted comment on Steve Mecenski's answer: Hardcoding working without storing the instance may have to do with how I'm wrapping the node later on... I'll test it in isolation. ...
0 votes

ROS2 Wrapper for a Python-based Sensor

I am not sure why you are asking for the service example. But here is a quick example, following this tutorial. Also not sure what tare function is doing. But you ...
aarsht7's user avatar
  • 93
0 votes

ROS2 Localization mode in slam_toolbox

have you found any solution? As I am stuck with the same problem and I am not able to load my map. I am using ros2-humble, slam_toolbox, (mode:localization) and I am trying to load the map using the ...
marq's user avatar
  • 1
0 votes

Subscribing to topic /tf_static in ROS2

/tf_static is published with transient local durability. By default you create subscribers with volatile durability. To change that do: ...
Nyquist's user avatar
  • 149
1 vote

Significant Degradation in SLAM Performance with Reduced LiDAR FoV

The solution could be found here. What improved the performance was following Steve's advice and change the following configuration parameters to the recomended value in the comment: ...
Arad's user avatar
  • 21
0 votes
Accepted

ros2_control_node errors after ROS2 Rolling update

Please read the console output carefully ...
Christoph Froehlich's user avatar
1 vote

fatal error: tf2_geometry_msgs/tf2_geometry_msgs.h: No such file or directory

hope my reply is not too late :) I met the same issue as you. After searching on the Internet, I found the solution. The reason for the issue The reason for the error is that the CMake cannot find the ...
Jin_Tonic's user avatar
3 votes
Accepted

Creation of ROS2 subscriptions dynamically in loop vs manually

As firthc pointed out (in the comment that is now a wiki answer), it is a "problem" with lambda functions. They create a reference to the environment rather than a copy of the current value ...
MadsDyrmann's user avatar
0 votes

Sensor fusion in ROS2: 360 lidar + depth camera

You can use packages like Rtabmap. Rtabmap is originally built for vslam but it supports data fusion from all other sources which gives you the ability to fuse scan data along with rgb and depth data.
fatemeh_p's user avatar
2 votes
Accepted

ROS2 data consumer/aggregator pattern

If I understand correctly, you want: Multiple subscribers to receive data, Upon msg of the 'primary subscriber': Aggregate the data of all subscribers (either latest msg or interpolated), Signal ...
JRTG's user avatar
  • 1,809
0 votes

E: Unable to locate package ros-humble-tf-transformations

I think Tully is correct. You have installed ROS2 desktop from source. Then you will also need to locate tf-transformations package and install it from source. Today I have installed TF ...
Marcus Vinicius's user avatar
0 votes

ROS2 package installation error

You cannot install ROS in Ubuntu (23.10) and not LTS in the form of a binary package. If necessary, you can install it through the source installation, but this will require more effort. If you don't ...
reason_rock's user avatar
2 votes

Octomap Saving Map Extension - ROS2

As mentioned here, try this approach: ...
fatemeh_p's user avatar
0 votes

Is it possible to use Nav2 Low Level Controllers without a map?

This is not directly possible with nav2. You can simply supply an empty map, but that can be a bit clunky and as you said, defeats the purpose. I had the same issue,...
Nyquist's user avatar
  • 149
0 votes

eprosima::fastcdr::Cdr::DDS_CDR

I have just checked that micro-ROS Agent builds in a fresh humble docker, you have my session here: https://asciinema.org/a/y45zFgRiYwqMca7u9t1yGtshg So, I cannot replicate your error, could you ...
Pablo Garrido's user avatar
0 votes

What is the best way to simulate Lidar for ROS2? Having problems

ros2 topic echo /scan is returning data as I have seen in your terminal, then your lidar is indeed working! The visualization on rviz2 is another step. Well ...
Marcus Vinicius's user avatar
1 vote
Accepted

ROS2, Create3, Node subscribes to topic /tf but cannot receive data

You are subscribing to the topic with a mismatched type you won't receive any data. You should subscribe with tf2_msgs/msg/TFMessage not a ...
Tully's user avatar
  • 25k
1 vote
Accepted

Does the mock hardware component "mock_components/GenericSystem" provided by ros2 control support the 'velocity' command interface?

You have to set calculate_dynamics parameter to calculate the position states from velocity commands ...
Christoph Froehlich's user avatar
0 votes

Spawner waiting for '/controller_manager' services to be available when they are already available

Which version of ROS 2 are you using, and which version of ros2_control? If you are using humble or iron: You can either remap /controller_manager/robot_description ...
Christoph Froehlich's user avatar
1 vote

Path to colcon test output directory in a gtest

I went down a bit of a rabbit hole on this, and the best general solution I can come up with would rely on ament. If you're adding the test using any of the ament CMake functions (i.e. anything other ...
cottsay's user avatar
  • 116
0 votes

Spawner waiting for '/controller_manager' services to be available when they are already available

I think the problem is not specifying the controller manager, try: ...
Jakub Ivan's user avatar
1 vote
Accepted

How to correctly change the command interface of the panda robot arm from 'position' to 'velocity' in the Moveit2 website tutorial

I think I got the crux. Maybe the the mock hardware(mock_components/GenericSystem) provided by ros2 control does not support the "velocity" command interface. My approach to finding the ...
Michael's user avatar
  • 35
1 vote

Path to colcon test output directory in a gtest

It's been suggested that I do: #include <rclcpp/logging.hpp> ... rclcpp::init(argc, argv); ... directory = rclcpp::get_logging_directory().string() ...
Matt's user avatar
  • 11
0 votes

Path to colcon test output directory in a gtest

This may be more of a hack than an elegant answer, but if you know the package name, you could write to the relative path ...
Steven Peters's user avatar
0 votes

How to update robot_radius and footprint dynamically for motion planning

To use from Python you can try this below class, where decrese_footprint can be used to switch as per your needs. Make sure to import necessary libraries. class ChangeFootprint(Node): ...
Ani's user avatar
  • 17
1 vote

robot_state_publisher-1 Error: joint limit: no effort

use this format: <limit upper="${2*3.14159}" lower="${-2*3.14159}" effort="100" velocity="10"/>
Jakub Ivan's user avatar
0 votes

How to correctly change the command interface of the panda robot arm from 'position' to 'velocity' in the Moveit2 website tutorial

When you used the position as the command interface, did the robot in RViz move? Print config file moveit_controllers.yaml from moveit config package if possible. Also, It would be good to see the ...
Jakub Ivan's user avatar
0 votes
Accepted

NED ENU transformations robot_localization

The ENU specification is relevant to the IMU data and really only affects navsat_transform_node, not the EKF. Having said that, if your sensor is producing ...
automatom's user avatar
  • 5,572
1 vote

ROS2 Error while installing dependencies (rosdep)

I fixed that issue by modifying the file /usr/lib/python3.11/site-packages/rospkg/os_detect.py, by importing platform as distro, i.e. the new imports of that file ...
enf's user avatar
  • 21
0 votes

Encountering error: qt.qpa.xcb: could not connect to display

You haven't provided many details, but taking a wild guess... Assuming that you are either: running Ubuntu on Windows and using WSL2 using a docker image The problem is that there isn't any desktop ...
Greenonline's user avatar
  • 1,558
2 votes
Accepted

Smartmicro radar ROS2 package Ethernet trouble

The exception is only triggered in the event of problems with communication: ...
Bi0T1N's user avatar
  • 441
0 votes

robot_state_publisher-1 Error: joint limit: no effort

<lower>-2*3.14159</lower> <upper>2*3.14159</upper> This will not work. Use ${} to perform mathematical operation. In your case: <...
Nikolai's user avatar
  • 111
0 votes
Accepted

rviz2 mesh visulization error while using GZ harmonic + ROS 2 humble

Yes, I had the same thing! Use the package keyword instead of model and redefine your relative path including the package. So ...
Nyquist's user avatar
  • 149
0 votes
Accepted

I am willing to implement ros2_canopen with ros2_control

Sorry for the late response. To use it with real hardware you have to do the following: remove fake_slaves nodes from your launch file, you don't have to replace them with other real nodes. ...
Mustafa Essam's user avatar
0 votes

ROS2 Send Image Through Service (C++)

I'd leave you with a roadmap since you do not specify what type of language you are using, and if you have any other constraints. You'd have to start by creating a custom service. There are a lot of ...
ssarkar's user avatar
  • 566
0 votes

Nav2 to navigate to space outside of global cost map when using static layer

To traverse regions outside the global costmap boundaries you need to set this param to true track_unknown_space: true
Marcus Vinicius's user avatar
0 votes

No Gazebo GUI error with gazebo_ros command

I faced the same problem before. It seems like the environment variable need to be added. This works for me. source /usr/share/gazebo/setup.bash
Tang Chuankai's user avatar
2 votes

ROS2 "install" can't load plugins on other machines

Well the problem and the solution are rather simple. It seems that the main problem is that by device IO in my plugins is getting blocked or even failing to open on the Pi. This blocking behavior ...
Boilerbots's user avatar
0 votes

ROS2/Gazebo fuel.ignitionrobotics.org URL deprecated

I guess gazebo maintainers turned off the redirect from this domain. I get the same error on humble harmonic. You can download the models directly before you run the simulation. Simply use the new url:...
Nyquist's user avatar
  • 149
0 votes
Accepted

OpenSSL version problem in ROS2 Humble install for Windows

From ICS Download, at the bottom of the page: OpenSSL Binaries Win-64 1.1.1w requires ICS V8.57 or later OpenSSL Binaries Win-32 1.1.1w requires ICS V8.57 or later Or just get the source code, from ...
Greenonline's user avatar
  • 1,558
-1 votes

ROS2 "install" can't load plugins on other machines

I don't think copying of the install directory is ever a good idea. If you want to deploy compiled code you rather want to deploy binaries and then install directly on the target machine. However, the ...
Nyquist's user avatar
  • 149
0 votes

ROS2 node auto launch booting

For your first issue, it seems from wherever you launch, the logging directory is inaccessible, try [Service] WorkingDirectory=/home/someuser For your second ...
Nyquist's user avatar
  • 149
0 votes

Gazebo Crashing cmd 'gzserver -slibgazebo_ros_init.so -slibgazebo_ros_factory.so -slibgazebo_ros_force_system.so']

I deleted Ros2 and reinstalled it. Then, rebuild the workspace again with all packages. This works for me.
Vrushab Jain's user avatar
2 votes

ROS2 MoveIt!2 "No acceleration limit was defined for joint! You have to define acceleration limits in the URDF or joint_limits.yaml"

The names of the joints in joint_limits.yaml are incorrect. It should be shoulder_pan_joint not just ...
Justin's user avatar
  • 81
0 votes

Response plan when data is not received from a peripheral device with a probability of 1/2 during spin

It entirely depends on your application and what you're trying to achieve. Slowing down your spin rate is most likely not advisable or desired. Because this would mean you're potentially missing ...
BTables's user avatar
  • 131
0 votes

colcon build disable or hide warning: -Wunused-parameter

The solution that I have found is by using --cmake-args: colcon build --cmake-args -DCMAKE_CXX_FLAGS="-w" Which ...
Rémi.T's user avatar
-1 votes

micro ros arduino Deserialization of data failed -> function deserialize_change error

Pass the data in your callback function
Shanmugam S's user avatar

Top 50 recent answers are included