Public Member Functions | Protected Attributes | List of all members
shadowrobot::PartialMovement Class Reference

#include <partial_movement.hpp>

Inheritance diagram for shadowrobot::PartialMovement:
Inheritance graph
[legend]

Public Member Functions

double get_target (double percentage)
 
 PartialMovement ()
 
virtual ~PartialMovement ()
 

Protected Attributes

std::vector< double > steps
 

Detailed Description

Definition at line 35 of file partial_movement.hpp.

Constructor & Destructor Documentation

shadowrobot::PartialMovement::PartialMovement ( )

Definition at line 31 of file partial_movement.cpp.

shadowrobot::PartialMovement::~PartialMovement ( )
virtual

Definition at line 34 of file partial_movement.cpp.

Member Function Documentation

double shadowrobot::PartialMovement::get_target ( double  percentage)

Returns a target for the given percentage.

Parameters
percentagemust be between 0 and 1
Returns
target from this movement.

Definition at line 37 of file partial_movement.cpp.

Member Data Documentation

std::vector<double> shadowrobot::PartialMovement::steps
protected

A vector containing the steps for this movement, in percentage of the range. Contains -1 if no target for this point.

Definition at line 55 of file partial_movement.hpp.


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


sr_movements
Author(s): Ugo Cupcic
autogenerated on Tue Oct 13 2020 03:50:46