16 #ifndef SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H 17 #define SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H 30 std::shared_ptr<T> result = std::make_shared<T>();
33 "Tried to create a rigid localization without valid position information";
37 return std::move(result);
44 #endif // SURGSIM_PHYSICS_RIGIDREPRESENTATIONBASE_INL_H Definition: DriveElementFromInputBehavior.cpp:27
Definition: Location.h:31
#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
bool hasValue() const
Query if this object has been assigned a value.
Definition: OptionalValue.h:56
SurgSim::DataStructures::OptionalValue< SurgSim::Math::Vector3d > rigidLocalPosition
Definition: Location.h:60
const T & getValue() const
Gets the value.
Definition: OptionalValue.h:78