Connect 2 cuboids to one Shape
Connect 2 cuboids to one Shape
Hello,
I would like to know if it is possible to connect 2 cuboids to one Shape.
For example, take a cylinder and each side connect a cuboid.
Because i'm controlling the position from both cuboid and so the cylinder
will move according to those positions.
Thank in advance
I would like to know if it is possible to connect 2 cuboids to one Shape.
For example, take a cylinder and each side connect a cuboid.
Because i'm controlling the position from both cuboid and so the cylinder
will move according to those positions.
Thank in advance
Re: Connect 2 cuboids to one Shape
Hello,
if you have a non-dynamic situation, then you can simply make any object child of the cylinder in order to attach it to it. Via the GUI, or via sim.setObjectParent:
If you have a dynamic situation, then you will have to use a force/torque sensor in-between:
in this case, use also sim.setObjectParent and sim.createForceSensor, sim.setObjectPosition, etc.
Cheers
if you have a non-dynamic situation, then you can simply make any object child of the cylinder in order to attach it to it. Via the GUI, or via sim.setObjectParent:
Code: Select all
cylinder --> cuboid1
--> cuboid2
Code: Select all
cylinder --> forceSensor1 --> cuboid1
--> forceSensor2 --> cuboid2
Cheers
Re: Connect 2 cuboids to one Shape
Thanks for your answer,
But I'm sorry I may have explained my question wrong.
I'm looking to connect them in this way
cuboid1 --> cylinder
cuboid2 --> cylinder
Is it possible please ?
But I'm sorry I may have explained my question wrong.
I'm looking to connect them in this way
cuboid1 --> cylinder
cuboid2 --> cylinder
Is it possible please ?
Re: Connect 2 cuboids to one Shape
No, you need to use the cylinder as the parent of the two cuboids. That shouldn't make any difference. What exactly are you trying to achieve?
cheers
cheers
Re: Connect 2 cuboids to one Shape
I'm getting position from a sensor that gives me the position of different body's joint.
Here the 2 cuboids represent one the shoulder position & the other one elbows position.
I need to connect them to a shape (cylinder type) to form a hand.
I am ready to listen any other solution
thanks
Here the 2 cuboids represent one the shoulder position & the other one elbows position.
I need to connect them to a shape (cylinder type) to form a hand.
I am ready to listen any other solution
thanks
Re: Connect 2 cuboids to one Shape
then why not simply:
?
Code: Select all
cuboid1 --> cylinder --> cuboid2
or
cuboid1 --> forceSensor1 --> cylinder --> forceSensor2 --> cuboid2
Re: Connect 2 cuboids to one Shape
I tried the first one, but the cylinder is only connected to the Cuboid1 i need to be connected also to the cuboid2 (physically)
Re: Connect 2 cuboids to one Shape
Do you have a robot arm, and want to additionally connect item together?
e.g. Take following situation:
imagine you wanted, at some point to rigidly connect shape1 and shape2 to the cylinder, then you could:
e.g. Take following situation:
Code: Select all
shape1 --> joint --> cylinder --> joint --> shape2
- make sure the two joints are in position control, and the target position doesn't change.
- you can always use additional constraints, so called loop closure constraints, e.g.:
Re: Connect 2 cuboids to one Shape
Is it possible to upload image to explain better ?
Cuboid 1 (shoulder) : position evolution
Cuboid 2 (elbow) : position evolution
I choose to add a cylinder to have a visual to see the pitch angle of the shoulder by connecting this cylinder between the shoulder and the elbow.
But i don't know how to do this.
Cuboid 1 (shoulder) : position evolution
Cuboid 2 (elbow) : position evolution
I choose to add a cylinder to have a visual to see the pitch angle of the shoulder by connecting this cylinder between the shoulder and the elbow.
But i don't know how to do this.
Re: Connect 2 cuboids to one Shape
You can post a link to your image hosted on DropBox or similar.
Sorry, from your explanation I still don't get it...
Sorry, from your explanation I still don't get it...