![]() |
RobWorkProject
25.2.11-
|
Class describing circular motions. More...
#include <Motion.hpp>
Inherits Motion< T >.
Public Types | |
typedef rw::core::Ptr< CircularMotion< T > > | Ptr |
smart pointer type to this class | |
typedef rw::core::Ptr< Target< T > > | TargetPtr |
![]() | |
typedef rw::core::Ptr< Motion< T > > | Ptr |
smart pointer type to this class | |
typedef rw::core::Ptr< Target< T > > | TargetPtr |
![]() | |
typedef rw::core::Ptr< MotionBase > | Ptr |
smart pointer type to this class | |
![]() | |
typedef rw::core::Ptr< Entity > | Ptr |
smart pointer type to this class | |
Public Member Functions | |
CircularMotion (TargetPtr start, TargetPtr mid, TargetPtr end) | |
Construct a CircularMotion starting in start, going through mid and ending in end. More... | |
const T & | start () |
Returns value of the start target. More... | |
const T & | mid () |
Returns the value of the mid point target. More... | |
const T & | end () |
Returns value of the end target. More... | |
TargetPtr | startTarget () |
Returns the start target. More... | |
TargetPtr | midTarget () |
Returns the mid point target. More... | |
TargetPtr | endTarget () |
Returns the end target. More... | |
virtual rw::core::Ptr< Motion< T > > | clone (const std::vector< TargetPtr > &newTargets) |
Make a copy of the motion. More... | |
virtual void | reverse () |
Do reverse motion. More... | |
![]() | |
MotionBase (MotionType motionType) | |
Constructs motion. More... | |
virtual | ~MotionBase () |
Destructor. | |
MotionType | motionType () |
Returns the type of the motion. More... | |
![]() | |
Entity (EntityType type, const std::string &id="") | |
Constructs an Entity with a given type,. More... | |
virtual | ~Entity () |
Destructor. | |
rw::core::PropertyMap & | getPropertyMap () |
Returns reference to rw::core::PropertyMap associated with the Entity. More... | |
const rw::core::PropertyMap & | getPropertyMap () const |
Returns reference to rw::core::PropertyMap associated with the Entity. More... | |
void | setPropertyMap (const rw::core::PropertyMap &propertymap) |
Sets the content of the propertymap. More... | |
int | getIndex () const |
Returns index specifying the position of the Entity in a Task. More... | |
void | setIndex (int index) |
Sets the order index of the Entity. More... | |
virtual EntityType | entityType () const |
Returns the type of Entity. More... | |
void | setId (const std::string &id) |
Set the id for the entity. More... | |
const std::string & | getId () const |
Get the id of the entity. More... | |
template<class T > | |
T | cast () |
Method which can be used to explicitly and safely casting an Entity. More... | |
Additional Inherited Members | |
![]() | |
Motion (MotionType motion_type) | |
Protected constructor. | |
![]() | |
rw::core::PropertyMap | _properties |
Properties of entity. | |
EntityType | _entityType |
The type of entity. | |
int | _index |
The index of the entity. | |
std::string | _id |
The id of the entity. | |
Class describing circular motions.
Circular motions are generally defined in Cartesian space. It is the reponsibility of the user to decide how to interpolate the rotation.
typedef rw::core::Ptr<Target<T> > TargetPtr |
Definition of target for convenience.
|
inline |
Construct a CircularMotion starting in start, going through mid and ending in end.
start | [in] motion start target. |
mid | [in] target to reach somewhere between start and end. |
end | [in] motion end target |
|
inlinevirtual |
Make a copy of the motion.
newTargets | [in] a vector of targets. |
Implements Motion< T >.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
Returns the value of the mid point target.
|
inline |
Returns the mid point target.
|
inlinevirtual |
Do reverse motion.
Implements Motion< T >.
|
inlinevirtual |
Returns value of the start target.
Implements Motion< T >.
|
inlinevirtual |