Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eslamsalahelsheikh opened this issue Jun 13, 2022 · 1 comment

Comments

@eslamsalahelsheikh
Copy link
Contributor

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?

@christophfroehlich
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants