Re: Summit XL wheel control
Posted: 25 May 2022, 20:28
What I said is valid for both embedded scripts and remote scripts.blackbird wrote: ↑25 May 2022, 17:59Is this for remote api? Im using zmqRemote api.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