Closed aabouman closed 3 years ago
Yes, it is possible to load multiple robots into the scene. For example:
vis = Visualizer()
path_urdf = joinpath(@__DIR__, "..", "robots", "iiwa14.urdf")
path_package = joinpath(@__DIR__, "..", "iiwa_stack")
mechanism = parse_urdf(path_urdf, remove_fixed_tree_joints=false)
urdf_visuals = URDFVisuals(path_urdf, package_path = [path_package])
mvis_1 = MechanismVisualizer(mechanism, urdf_visuals, vis["robot_1"])
mvis_2 = MechanismVisualizer(mechanism, urdf_visuals, vis["robot_2"])
Does this answer your question, @aabouman? :slightly_smiling_face:
Yeah, thanks so much!
Is it possible to add multiple URDFs to the same MeshCat window? I looked through the documentation of both RigidBodyDynamics.jl and MeshCatMechanisms.jl and was unable to find any mention of this.