Skip to content
Discussion options

You must be logged in to vote

While there is no API to directly change only the pose, there is an API that will give you the end result: SceneGraph::ChangeShape() (and, more particularly, it's context-modifying variant).

Basic sample code -- modify SceneGraph's model

SceneGraph<double>& scene_graph = ...;  // SceneGraph from somewhere.
const GeometryId geom_id = ...;   // The geometry id you've found/tracked/whatever.
const SourceId source_id = ...;   // The id of the "owner" of the geometry.
const SceneGraphInspector<double>& inspector = scene_graph.model_inspector();
const RigidTransformd X_FG = ...;  // Your new pose.
scene_graph.ChangeShape(source_id, geom_id, inspector.GetShape(geom_id), X_FG);

Notes:

  1. This varia…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SeanCurtis-TRI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants