16 #ifndef SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H 17 #define SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H 30 std::shared_ptr<T> result = std::make_shared<T>(
34 "Tried to create a rigid localization without valid position information";
38 return std::move(result);
45 #endif // SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H Definition: CompoundShapeToGraphics.cpp:29
The Representation class defines the base class for all physics objects.
Definition: Representation.h:53
A Location defines a local position w.r.t.
Definition: Location.h:39
#define SURGSIM_ASSERT(condition)
Assert that condition is true.
Definition: Assert.h:77
std::shared_ptr< Component > getSharedPtr()
Gets a shared pointer to this component.
Definition: Component.cpp:170
std::shared_ptr< T > createTypedLocalization(const SurgSim::DataStructures::Location &location)
Creates typed localization.
Definition: RigidRepresentationBase-inl.h:26
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
SurgSim::DataStructures::OptionalValue< SurgSim::Math::Vector3d > rigidLocalPosition
Definition: Location.h:156