Replies: 3 comments 1 reply
-
@Mayankm96 any idea? |
Beta Was this translation helpful? Give feedback.
-
Are the PD gains are turned accordingly to do velocity control? I think they have a non-zero proportional component which makes it go to 0 (i.e. zero joint position). |
Beta Was this translation helpful? Give feedback.
-
Hi @Mayankm96 thank you for your reply! Do you mean the stiffness and damping of franka configuration I would like to know whether there is a configuration from which I could get a PD controller for joint velocity control? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello, I was following the tutorial on Orbit about the differential IK controller (Link). It uses the joint position control command
robot.set_joint_position_target(joint_pos_des, joint_ids=robot_entity_cfg.joint_ids)
to set joint position target of a Franka Panda arm for each control loop (line 176).For my application I will need a velocity controller. I found
set_joint_velocity_target
insource/extensions/omni.isaac.orbit/omni/isaac/orbit/assets/articulation/articulation.py
.So I changed the joint position control command in
run_diff_ik.py
to the joint velocity control commandrobot.set_joint_velocity_target(torch.zeros([1, 7], device=sim.device), joint_ids=robot_entity_cfg.joint_ids)
androbot.set_joint_velocity_target(torch.ones([1, 7], device=sim.device), joint_ids=robot_entity_cfg.joint_ids)
to test whether the joints stay still at the default configuration (torch.zeros()
) and whether all the joints rotate with a certain speed (torch.ones()
).However, with the all-zero joint velocity input, the robotic arm does not stay still at the default configuration, but moves toward a configuration where it becomes to "stand upright", as shown in the following screenshot:


Similarly, with the all-one joint velocity input, the robotic arm doesn't act as expected (all joints rotate at a certain speed), but stops at some state near the zero-configuration:
I'm confused about this velocity command, because it does not seem to drive the joint towards a certain joint velocity, but to a certain configuration (joint position). I'm writing to ask if this is a common issue that still needs to be resolved or if I wrongly understand this function. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions