Page 1 of 1

How to attach an entity to a FootBot?

Posted: Wed Mar 10, 2021 3:06 pm
by Willy Hou
Is there a way in the loopfunction I could permanently attach an entity such as a cylinder to an anchor point on the FootBot such that other robots could observe this cylinder as it is being carried by the FootBot it is attached to?

Re: How to attach an entity to a FootBot?

Posted: Wed Mar 10, 2021 3:17 pm
by pincy
Check the gripping example.

Re: How to attach an entity to a FootBot?

Posted: Wed Mar 10, 2021 3:44 pm
by Willy Hou
Check the gripping example.
Thanks for the reply. I wonder is there a way to initialize the FootBot and then immediately configure a cylinder entity to be attached to an anchor point say at the origin of the robot's body not using the gripper tool. I believe using the gripper will result in the cylinder being attached to the location defined by the gripper tool.

Re: How to attach an entity to a FootBot?

Posted: Wed Mar 10, 2021 3:59 pm
by pincy
The physics engines allow it, but you need to delve into them from the loop functions. For example, you could add a joint between the cylinder and foot-bot bodies. Or you can initialize the foot-bot close to the cylinder and lock the gripper.