This might not be a bug, but rather an undocumented behavior.
When only a single robot in present in a Studio scene, playing a trajectory with
studio.run_trajectory(trajectory)
studio.run_trajectory(trajectory, robot=the_robot)
A little bit of context:
jacobi.Studio
jacobi.Studio.add_robot(...)
studio.run_trajectory(trajectory, robot=the_robot)
Could you please tell me how one is supposed to create/upload the robots to Studio Live and then to execute the trajectory on a specific robot?
Thanks
1 year ago
8 months ago
Here is a video of two robots in Studio. This works on my side with the following snippet:
0 10 months ago Reply
This is what I was/am doing indeed.
I just tried once again today and, to my surprise, it is now working!
I'm pretty confident nothing changed in my code since I last tried, but I might be using a more recent version of the library compared to last time.
In any case, it seems that something has changed somewhere, but what matters is that it's now functional!
Thanks for the help.
1 10 months ago Reply
Hi Lars,
I tried to name my robots , but to no avail. I still have to select them in Studio to see the replay of a trajectory.
0 11 months ago Reply
11 months ago
Thanks for your answer. I'll try once I'm back from vacation.
In the meantime, an additional question:
My understanding is that the robot needs to be created manually in Studio in order to be controlled via Studio Live. Is that correct or is there a way to upload a robot with something like
?studio.add_robot(my_robot)
0 11 months ago Reply
Thanks for the detailed description!
Can you set the name of the robot in Python via
to the same name of the robot you want to control in Studio? In general, we're using an object's name to match them between the code and Studio.the_robot.name = "..."
0 1 year ago Reply
Additional info: it is possible to move an arbitrary robot by selecting it in Studio before calling
(without specifying any robot argument in the call).studio.run_trajectory(trajectory)
1 1 year ago Reply
Yes, we have the concept of an active robot, and if no robot is specified we fall back to the last active one.
0 1 year ago Reply