|
| BasicVector ()=default |
|
template<typename Derived2 > |
| BasicVector (const BasicVector< Derived2, Units > &v) |
| Construct from a vector of same units, but different derived type. More...
|
|
template<typename Other > |
Derived | cross (const BasicVector< Other, Units > &other) const |
| Passthrough to Eigen vector cross method. More...
|
|
template<typename Other > |
double | dot (const BasicVector< Other, Units > &other) const |
| Passthrough to Eigen vector dot method. More...
|
|
template<typename ContainType > |
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...
|
|
Derived | 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...
|
|
template<typename ContainType > |
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...
|
|
template<typename Derived, typename Units>
class gams::pose::BasicVector< Derived, Units >
For internal use. The underlying template for all coordinate types.
Definition at line 516 of file Coordinate.h.
template<typename Derived, typename Units>
template<typename ContainType >
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
-
ContainType | the type of the container; must support operator[] |
- Parameters
-
in | the container to pull new values from. |
Definition at line 627 of file Coordinate.h.
template<typename Derived, typename Units>
template<typename ContainType >
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
-
ContainType | the type of the container; must support "set" |
- Parameters
-
out | the container to put this Coordinate's values into. |
Definition at line 606 of file Coordinate.h.