Go to the documentation of this file.
16 #ifndef SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H
17 #define SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H
30 std::shared_ptr<T> result = std::make_shared<T>(
31 std::static_pointer_cast<Representation>(
getSharedPtr()));
34 "Tried to create a rigid localization without valid position information";
38 return std::move(result);
45 #endif // SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H
#define SURGSIM_ASSERT(condition)
Assert that condition is true.
Definition: Assert.h:77
std::shared_ptr< T > createTypedLocalization(const SurgSim::DataStructures::Location &location)
Creates typed localization.
Definition: RigidRepresentationBase-inl.h:26
SurgSim::DataStructures::OptionalValue< SurgSim::Math::Vector3d > rigidLocalPosition
Definition: Location.h:156
std::shared_ptr< Component > getSharedPtr()
Gets a shared pointer to this component.
Definition: Component.cpp:170
Definition: CompoundShapeToGraphics.cpp:29
bool hasValue() const
Query if this object has been assigned a value.
Definition: OptionalValue.h:56
const T & getValue() const
Gets the value.
Definition: OptionalValue.h:78
A Location defines a local position w.r.t.
Definition: Location.h:39