Welcome to the HEBI Community Forum, where users can get help using HEBI products, share their projects, and help each develop sophisticated custom robotic solutions! https://forums.hebi.us/
When I command my actuator to a certain position it ramps up to max velocity to reach this position.
Can I use the position command with a maximum allowed velocity or can I use velocity_limit_max maybe? How would that look as code?
Best,
Rasmus
Re: Command position with maximum allowed velocity
Posted: Mon Mar 08, 2021 10:54 am
by matt_tesch
Rasmus,
When commanding a position, this is telling the actuator to try to move to this position instantaneously. While you can use velocity limits to try to address the issue, this isn't really what they are designed for.
Instead, we recommend you plan a smooth trajectory to the destination position for the actuator over a range of time. This allows you to more explicitly control how the actuator reaches the destination position as well as what that destination position is.
For constant velocity motions, you can have a simple while loop that achieves this motion; alternatively, we typically use minimum jerk trajectories to smoothly move the actuator to a destination position.