Summit XL wheel control

Typically: "How do I... ", "How can I... " questions
fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: Summit XL wheel control

Post by fferri »

blackbird wrote: 25 May 2022, 17:59
fferri wrote: 25 May 2022, 10:35 The correctness of the call to sim.getObject with a relative path argument depends on where the script is located.

sim.getObject'./front_left_wheel' will work from the robot's script, but not from a script outside the robot hierarchy tree.

From other scripts you can use an absolute partial path, e.g. '/RobotnikSummitXL/front_left_wheel' (which is roughly the same as '/RobotnikSummitXL/*/front_left_wheel') or another path that is valid and not ambiguous.

See Accessing scene objects programmatically
Is this for remote api? Im using zmqRemote api.
What I said is valid for both embedded scripts and remote scripts.

Post Reply