BodyShapeDescription captures all the information necessary to describe a SceneGraph collision shape associated with a MultibodyPlant Body: a shape S, the MultibodyPlant body B (identified by model instance and body names), and the rigid pose of the shape S relative to the body B, X_BS.
Most clients should use the factory method MakeBodyShapeDescription() to construct a valid BodyShapeDescription; it will extract and verify the correct information from a multibody plant and its context.
When moved-from, this object models a "null" description and all of the getter functions will throw.
#include <drake/planning/body_shape_description.h>
Public Member Functions | |
BodyShapeDescription (const geometry::Shape &shape, const math::RigidTransformd &X_BS, std::string model_instance_name, std::string body_name) | |
Constructs a description with the given attributes. More... | |
const geometry::Shape & | shape () const |
const math::RigidTransformd & | pose_in_body () const |
const std::string & | model_instance_name () const |
const std::string & | body_name () const |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
BodyShapeDescription (const BodyShapeDescription &)=default | |
BodyShapeDescription & | operator= (const BodyShapeDescription &)=default |
BodyShapeDescription (BodyShapeDescription &&)=default | |
BodyShapeDescription & | operator= (BodyShapeDescription &&)=default |
|
default |
|
default |
BodyShapeDescription | ( | const geometry::Shape & | shape, |
const math::RigidTransformd & | X_BS, | ||
std::string | model_instance_name, | ||
std::string | body_name | ||
) |
Constructs a description with the given attributes.
Does not check or enforce correctness; callers are responsible for providing consistent input.
const std::string& body_name | ( | ) | const |
const std::string& model_instance_name | ( | ) | const |
|
default |
|
default |
const math::RigidTransformd& pose_in_body | ( | ) | const |
X_BS | The pose passed at construction. |
const geometry::Shape& shape | ( | ) | const |