GAMS  1.2.2
gams::pose::PositionVector Class Reference

#include <Coordinate.h>

Inheritance diagram for gams::pose::PositionVector:
gams::pose::BasicVector< PositionVector, units::absolute< units::length > > gams::pose::BasicPose< Pose > gams::pose::BasicPose< PoseVector > gams::pose::BasicPose< StampedPose > gams::pose::BasicPose< Derived > gams::pose::Framed< BasicPose< Pose > > gams::pose::PoseVector gams::pose::Framed< BasicPose< StampedPose > > gams::pose::Pose gams::pose::Stamped< Framed< BasicPose< StampedPose > > > gams::pose::StampedPose

Public Types

using Base = BasicVector< PositionVector, units::absolute< units::length > >
 
using derived_type = PositionVector
 
using units_type = units::absolute< units::length >
 

Public Member Functions

PositionVector cross (const BasicVector< Other, units::absolute< units::length > > &other) const
 Passthrough to Eigen vector cross method. More...
 
double dot (const BasicVector< Other, units::absolute< units::length > > &other) const
 Passthrough to Eigen vector dot method. More...
 
void from_array (const ContainType &in)
 Overwrites this Coordinate's values with those pulled from the referenced array. More...
 
void from_container (const madara::knowledge::containers::NativeDoubleVector &container)
 Assign values from a NativeDoubleVector container. More...
 
double get (size_t i) const
 Get i'th value in this Coordinate. More...
 
bool is_set () const
 Does this coordinate have any values not INVAL_COORD? More...
 
bool is_zero () const
 Does this coordinate have values all zeroes? More...
 
double norm () const
 Passthrough to Eigen vector norm method. More...
 
PositionVector normalized () const
 Passthrough to Eigen vector normalized method. More...
 
double set (size_t i, double v)
 Set i'th value in this Coordinate. More...
 
size_t size () const
 Get number of values in this coordinate. More...
 
double squaredNorm () const
 Passthrough to Eigen vector squaredNorm method. More...
 
void to_array (ContainType &out) const
 Outputs this Coordinates values to the referenced container. More...
 
void to_container (madara::knowledge::containers::NativeDoubleVector &container) const
 Assign values into a NativeDoubleVector container. More...
 
std::string to_string (const std::string &delimiter=",", const std::string &unset_identifier="<unset>") const
 Returns a string of the values x, y, z. More...
 

Static Public Member Functions

static constexpr bool fixed ()
 Is this coordinate a fixed vector? More...
 
static constexpr bool free ()
 Is this coordinate a free vector? More...
 
static constexpr bool positional ()
 Is this coordinate a positional one? More...
 
static constexpr bool rotational ()
 Is this coordinate a rotational one? More...
 

Static Public Attributes

static constexpr const char * type_name = "Position" "Vector"
 

Detailed Description

Definition at line 1053 of file Coordinate.h.

Member Typedef Documentation

Member Function Documentation

Passthrough to Eigen vector cross method.

Definition at line 704 of file Coordinate.h.

double gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::dot ( const BasicVector< Other, units::absolute< units::length > > &  other) const
inlineinherited

Passthrough to Eigen vector dot method.

Definition at line 695 of file Coordinate.h.

static constexpr bool gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::fixed ( )
inlinestaticinherited

Is this coordinate a fixed vector?

Definition at line 552 of file Coordinate.h.

static constexpr bool gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::free ( )
inlinestaticinherited

Is this coordinate a free vector?

Definition at line 549 of file Coordinate.h.

void gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::from_array ( const ContainType &  in)
inlineinherited

Overwrites this Coordinate's values with those pulled from the referenced array.

These values will be within this object's current reference frame. The container must support operator[],

If the array's size is smaller than the cardinality of this coordinate type, the behavior is undefined. If it is larger, the extra elements are ignored.

Template Parameters
ContainTypethe type of the container; must support operator[]
Parameters
inthe container to pull new values from.

Definition at line 627 of file Coordinate.h.

void gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::from_container ( const madara::knowledge::containers::NativeDoubleVector &  container)
inlineinherited

Assign values from a NativeDoubleVector container.

Parameters
containerthe container

Definition at line 683 of file Coordinate.h.

double gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::get ( size_t  i) const
inlineinherited

Get i'th value in this Coordinate.

No range checking!

Definition at line 560 of file Coordinate.h.

bool gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::is_set ( ) const
inlineinherited

Does this coordinate have any values not INVAL_COORD?

Definition at line 571 of file Coordinate.h.

bool gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::is_zero ( ) const
inlineinherited

Does this coordinate have values all zeroes?

Definition at line 582 of file Coordinate.h.

double gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::norm ( ) const
inlineinherited

Passthrough to Eigen vector norm method.

Definition at line 714 of file Coordinate.h.

Passthrough to Eigen vector normalized method.

Definition at line 730 of file Coordinate.h.

static constexpr bool gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::positional ( )
inlinestaticinherited

Is this coordinate a positional one?

Definition at line 543 of file Coordinate.h.

static constexpr bool gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::rotational ( )
inlinestaticinherited

Is this coordinate a rotational one?

Definition at line 546 of file Coordinate.h.

double gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::set ( size_t  i,
double  v 
)
inlineinherited

Set i'th value in this Coordinate.

No range checking!

Parameters
vthe value to set to
Returns
the new value

Definition at line 568 of file Coordinate.h.

size_t gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::size ( void  ) const
inlineinherited

Get number of values in this coordinate.

Definition at line 555 of file Coordinate.h.

double gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::squaredNorm ( ) const
inlineinherited

Passthrough to Eigen vector squaredNorm method.

Definition at line 722 of file Coordinate.h.

void gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::to_array ( ContainType &  out) const
inlineinherited

Outputs this Coordinates values to the referenced container.

This container type must support operator[] for setting by index.

If the array's size is smaller than the cardinality of this coordinate type, the behavior is undefined. If it is larger, the extra elements are not changed.

The MADARA DoubleVector and NativeDoubleVector types are supported.

Template Parameters
ContainTypethe type of the container; must support "set"
Parameters
outthe container to put this Coordinate's values into.

Definition at line 606 of file Coordinate.h.

void gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::to_container ( madara::knowledge::containers::NativeDoubleVector &  container) const
inlineinherited

Assign values into a NativeDoubleVector container.

Parameters
containerthe container

Definition at line 671 of file Coordinate.h.

std::string gams::pose::BasicVector< PositionVector , units::absolute< units::length > >::to_string ( const std::string &  delimiter = ",",
const std::string &  unset_identifier = "<unset>" 
) const
inlineinherited

Returns a string of the values x, y, z.

Parameters
delimiterdelimiter between values
unset_identifiervalue to print if unset
Returns
stringified version of the Linear

Definition at line 641 of file Coordinate.h.

Member Data Documentation

constexpr const char* gams::pose::PositionVector::type_name = "Position" "Vector"
static

Definition at line 1053 of file Coordinate.h.


The documentation for this class was generated from the following file: