You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @zichunxx, this is partially correct. You've actually found a small bug, thanks for that. What's happening here is that interface.set_mocap_xyz("target_orientation", filtered_target[:3])
is setting the orientation of the red box that is used to show the position and orientation of the target the arm is following. This is just for visual purposes and does not affect the control at all. Since the velocities are fairly low the orientation does not change much for the target box.
The position and velocity information get passed to the controller in the ctrlr.generate() line when you pass in the filtered_target. If you would like to control orientation as well you would have to update the ctrlr_dof parameter. The first three entries are for x, y, and z, and the last three are for alpha, beta, and gamma orientations. In this example script it's just controll the position since ctrlr_dof = [True, True, True, False, False, False].
If you look at the [force_osc_xyzabg_linear_position_gaussian_velocity.py] script you can see an example of controlling position and orientation. However, note that due to the design of the jaco2 wrist it will face singularities that make it difficult for the arm to follow all 6DOF at all times.
Hi @p3jawors, thanks for your detailed explanation! I have read the example you mentioned.
This is just for visual purposes and does not affect the control at all. Since the velocities are fairly low the orientation does not change much for the target box.
As you said, this bug is logically incorrect but has no major impact on the controller.
Hi! @studywolf Thanks for your amazing repo!
For
force_osc_xyz_linear_path_gaussian_velocity.py
, the generated path byabr_control/examples/Mujoco/force_osc_xyz_linear_path_gaussian_velocity.py
Lines 58 to 60 in 0f6e476
is six dimensions containing the 3-D position target and 3-D velocity profile.
However, the
filtered_target
is taken as the target forosc
controller, and the last 3-d velocity profile is taken as the orientation target.abr_control/examples/Mujoco/force_osc_xyz_linear_path_gaussian_velocity.py
Lines 91 to 104 in 0f6e476
Is that right? Thanks for your time!
The text was updated successfully, but these errors were encountered: