builder = DiagramBuilder()
plant, scene_graph = AddMultibodyPlantSceneGraph(builder, 0.0)
parser = Parser(plant)
renderer_name = "renderer"
renderer = MakeRenderEngineVtk(RenderEngineVtkParams())
scene_graph.AddRenderer(
renderer_name, renderer)
...
for i, position in enumerate(positions):
obj_joints[i].set_translation(plant_context, position)
diagram.Publish(diagram_context)
scene_graph.Publish(sg_context)
The above code does not update anything in the visualizer.
I must run:
simulator.AdvanceTo(100.0)
For anything to update visually.
How do I get the objects to move to their new poses without physics simulation?