python API function; joint name ambiguity

Typically: "How do I... ", "How can I... " questions
Post Reply
eason
Posts: 2
Joined: 08 May 2024, 12:40

python API function; joint name ambiguity

Post by eason »

Hello CoppeliaSim,
I am using CoppeliaSim Edu 4.6.0. I’d like to control the spherical joint of mannequin using python API. which function can I use, like the code strat with "sim.simx..."? And the joints of mannequin in scene huerarchy have the same name. How can I get the handlle of a specific joint with "sim.simxGetObjectHandle()" function?
Thank you very much.
Best regards
Eason

fferri
Posts: 1242
Joined: 09 Sep 2013, 19:28

Re: python API function; joint name ambiguity

Post by fferri »

Remote API: https://manual.coppeliarobotics.com/en/ ... erview.htm

The function to use is sim.getObject (see the example in the above page).

eason
Posts: 2
Joined: 08 May 2024, 12:40

Re: python API function; joint name ambiguity

Post by eason »

Dear fferri,

Thank you for your guidance. I'd like to share the details of my solution:
1. In python API, simxSetSphericalJointMatrix is used to control spherical joint with 12 values.
2. The name and properites of the selected object are listed in the rendering window instead of scene hieratrchy.

Regards

Eason

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

Re: python API function; joint name ambiguity

Post by coppelia »

I highly recommend to use the ZeroMQ remote API, instead of the legacy remote API: the ZeroMQ remote API is much more flexible, easier to use, and faster. Additionally, it covers all API functions you'd also use from within CoppeliaSim.

Cheers

Post Reply