Skip to content

How to know the endpoint coordinates of a robot ? #4073

Discussion options

You must be logged in to vote

Hi @ISIR-GuillaumeS

Let's say that the index of the trunk tip in the volumetric mesh that you use is tipIndex and that you create your MechanicalObject as follows:

myMO = objectNode.addObject("MechanicalObject", template="Vec3d", name="MO")

What you can do to access in read access the position of the tip is :

myMO.position.value[tipIndex]

I hope this helps

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ISIR-GuillaumeS
Comment options

Answer selected by ISIR-GuillaumeS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants