Conversation
|
Hi! 🥹
Yes, it makes sense that the rest cost helps here -- you could also add a Regarding this PR, I do have a light preference to keep Would you be interested in turning this into a new example (e.g., maybe |
|
Hi, I want this feature, too. But i can't work it out when using limit_velocity_cost. timesteps = 2
traj_var_prev = robot.joint_var_cls(jnp.arange(0, timesteps - 1))
traj_var_next = robot.joint_var_cls(jnp.arange(1, timesteps))
factors.append(pk.costs.limit_velocity_cost(
jax.tree.map(lambda x: x[None], robot),
traj_var_prev,
traj_var_next,
weight=100,
dt=0.1,
))Do i miss something?? |
Thanks for your amazing work!
I found it necessary to retrieve the IK solution closest to the current joint config necessary for smoothness and consistencies. Adding an additional cost term to the optimization does the trick for me.