gazebo_ros2_control icon indicating copy to clipboard operation
gazebo_ros2_control copied to clipboard

Error while running the diffdrive example in rcppmath::clamp function (limit acceleration related)

Open eslamsalahelsheikh opened this issue 2 years ago • 1 comments

Hi all,

I'm using Ros2 galactic on Ubuntu 20.04 and after following the whole tutorial and when I reach to the point where I should run the demos, all the demos work fine except for the diff_drive example So, I replaced the command ros2 launch gazebo_ros2_control_demos diff_drive_example.launch.py with ros2 launch gazebo_ros2_control_demos diff_drive.launch.py but I got the following error:

[gzserver-1] gzserver: /opt/ros/galactic/include/rcppmath/clamp.hpp:41: constexpr const T& rcppmath::clamp(const T&, const T&, const T&) [with T = double]: Assertion `!(hi < lo)' failed.

And I found that when I switch off the limits on acceleration here and here , it works without any problems!
So, I'm wondering what is the issue here?

eslamsalahelsheikh avatar Jun 13 '22 12:06 eslamsalahelsheikh

I was not able to reproduce this with an up-to-date galactic binary installation, but since June there was no change in the galactic packages for this repo. Can you give more information on your setup or the commands you have run?

christophfroehlich avatar Nov 20 '22 18:11 christophfroehlich