x


Configurable joint with asymmetric yMotion limit

I'm building a robot arm that grabs a pipe. The pipe has two endpoints which are wider than the pipe itself. After the pipe is picked up, it can slide through the gripper, until the wider part runs into the gripper. To do this I would like to use a configurable joint that's limited on the yMotion. Unfortunately the yMotion property is symmetrical, so this idea would only work when the pipe was grabbed exactly in the middle. Is there a way to accomplish this ?

[Edit] I've put together a test scene that illustrates what I'm trying to achieve.

The solution I'm working on does this :

  1. A rigidbody (hinge) is connected via a hinge joint to a kinematic rigidbody (root).
  2. In script (ConnectPipe.cs) I position a dummy rigidbody at the position of the hinge.
  3. Add a sliding configurable joint between the dummy and the hinge.
  4. Position the dummy at the pipe.
  5. Create a fixed joint between the pipe and the dummy.

There's two things going wrong with this scene. If I position the dummy (which is kinematic) with its transform, the hinge joint does not experience any gravity of the pipe anymore. If I position the dummy by means of Rigidbody.MovePosition(), the hinge works fine, but it seems like the positioning is not having effect. Because the sliding joint is anchored incorrectly and the pipe slides out too far.

I also tried moving the joint's anchor, but that did not have any effect whatsoever.

more ▼

asked Apr 18 '11 at 01:43 PM

PatHightree gravatar image

PatHightree
379 7 10 20

Added sample scene + description.

Apr 21 '11 at 11:43 AM PatHightree
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x147
x134
x64
x17

asked: Apr 18 '11 at 01:43 PM

Seen: 1103 times

Last Updated: Apr 21 '11 at 03:36 PM