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

Some problems #91

Open
jin-yiwei opened this issue Dec 24, 2024 · 1 comment
Open

Some problems #91

jin-yiwei opened this issue Dec 24, 2024 · 1 comment

Comments

@jin-yiwei
Copy link

jin-yiwei commented Dec 24, 2024

Hello~
Environment: ubuntu22.04 + realtime kernel + libfranka0.14.1 + franka_ros2

Problem:

  1. libfranka example is ok except "force_control", the error is: "libfranka: Move command aborted: motion aborted by reflex! ["controller_torque_discontinuity"]"
  2. all franka_ros2 example is not ok, the errors in 2 different PC are:
  • [ros2_control_node-3] terminate called after throwing an instance of 'St9bad_alloc'; [ros2_control_node-3] what(): std::bad_alloc

  • what(): libfranka: Move command aborted: motion aborted by reflex! ["cartesian_motion_generator_velocity_discontinuity", "cartesian_motion_generator_acceleration_discontinuity"]

Do you know why? thanks!

@AndreasKuhner
Copy link
Member

Hi @jin-yiwei ,
discontinuities usually have 2 sources of errors:

  1. The sent commands introduce too big jumps from the last one. Aka last commanded torque is too far away from the current command or
  2. Communication problems -> if too many commands are delayed received, it can introduce jumps again resulting in discontinuities.

For the first one, there is not much we can do on our side (aka you need to make sure to send valid commands).
For the second one -> there is a libfranka 0.14.2 which helps in reducing some communication problems with ROS 2. Maybe you could try this version.

Otherwise, you could also run the examples directly with libfranka. Especially, it has a communication example giving you some statistics of our good your connection is.

Cheers,
Andreas

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