Command position with maximum allowed velocity #136
-
When I command my actuator to a certain position it ramps up to max velocity to reach this position. Best,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. Here is an example of this in Python: Also, I would recommend taking a look at the documentation and tutorial video; these go into more depth on this topic and some alternatives: https://docs.hebi.us/core_concepts.html ... y_overview
|
Beta Was this translation helpful? Give feedback.
-
Alright, thanks Matt. I'm gonna take a look at planning a trajectory instead.
|
Beta Was this translation helpful? Give feedback.
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.
Here is an …