Constrains only orientation but not position

Typically: "How do I... ", "How can I... " questions
Post Reply
ljw_SpaceRobot
Posts: 6
Joined: 24 Jan 2024, 08:11

Constrains only orientation but not position

Post by ljw_SpaceRobot »

There is a serial 7-DOF space manipulator, which is in the zero-gravity environment. How can I keep the base orientation constant and the base position follow the law of conservation of linear momentum?

Remark:

1. When joints move according to the instructions I give, obviously the base position will change to ensure that the total centroid position of the system remains unchanged (assuming the system is not subjected to external forces). I have derived the dynamic model of the system, my purpose is to verify whether my dynamic model is correct through the physics engine of coppeliasim.
2. Actually the orientation of the base should be controlled by the jet device, but it seems difficult, so I don't consider this method. Can I directly constrain the base orientation, it looks simpler and more precise.

I'm really looking forward to someone helping!

coppelia
Site Admin
Posts: 10375
Joined: 14 Dec 2012, 00:25

Re: Constrains only orientation but not position

Post by coppelia »

Hello,

I think you have several approaches you can use. 3 that I can think of:
  • set the dynamics properties of the base object to have a very large inertia. Best engines to use in that case: MuJoCo, Newton (or Vortex). ODE and Bullet won't perform well I guess in that situation
  • set the dynamics engine properties of the base object to have a very large angular damping
  • use 3 prismatic joints that are free, i.e. not controlled. Best would be to use MuJoCo here too, since you do not need to add auxiliary masses in-between as with other engines:

Code: Select all

-- MuJoCo:
fixedBase --> prismaticJoint1 --> prismaticJoint2 --> prismaticJoint3 --> robotBase -->

-- Other engines:
fixedBase --> prismaticJoint1 --> auxMass1 --> prismaticJoint2 --> auxMass2 --> prismaticJoint3 --> robotBase -->
With the auxiliary masses, there will be some influence on the rest of the robot.

Cheers

ljw_SpaceRobot
Posts: 6
Joined: 24 Jan 2024, 08:11

Re: Constrains only orientation but not position

Post by ljw_SpaceRobot »

Thank you very much! I will try your method.

ljw_SpaceRobot
Posts: 6
Joined: 24 Jan 2024, 08:11

Re: Constrains only orientation but not position

Post by ljw_SpaceRobot »

The problem has been solved. I use the "SetObjectOrientation" function at every step.

Post Reply