Hello,
I tried uploaded some obstacle meshes with Studio Live using:
object = jacobi.Convex.load_from_file(mesh_path)
origin = jacobi.Frame.from_quaternion(*pose)
obstacle = jacobi.Obstacle(object, origin, "66C866")
studio.add_obstacle(obstacle)
Thanks
1 year ago
9 months ago
To add a file via Studio Live currently, you'd need to:
,Planner.load_from_project_file
.obstacle = planner.environment.get_obstacle('<name>')
.studio.add_obstacle(obstacle)
This way we circumvent uploading large mesh files via Studio Live. But I do see that referencing an existing file can be made much simpler, so in the next release we'll add the following way
. Does that sound good to you?studio.add_obstacle(Convex.reference_studio_file('<file_name_in_studio_project>'))
0 11 months ago Reply
Hi Lars,
Thanks for the feedback.
If I understand correctly, to place a convex mesh in the scene:
Is that right?
I guess a
method would help a little bit, but the overall process would remain quite involved for loading any new mesh.studio.add_obstacle(Convex.reference_studio_file('<file_name_in_studio_project>'))
Let me flesh out the use-case I have in mind, as this might help explain the issue I'm facing.
I need to programatically create scenes containing meshes for some obstacles / grippers on my local machine.
There seems to be no issue on the planner side (except the IK issue mentionned in another bug report) when proceeding this way. But I actually don't have any visual feedback about what obstacles the planner knows about and if they are in a proper pose.
To check that the scene looks like I expect, I would like to use Studio, as there is the possibility to upload obstacles with
. However, I face the two following issues:studio.add_obstacle()
only works for primitive shapes, and trying to add meshes doesn't show anything in Studio (this bug report)studio.add_obstacle()
Maybe this description can give you a better idea of the use-case I'm thinking about.
1 11 months ago Reply
Hey @Alban Laflaquiere, we're looking into it.
0 11 months ago Reply
11 months ago