Robot driver callback to keep track of average speed and distance between phase changes.

#include <RoboSimian.h>

Inheritance diagram for chrono::robosimian::RS_DriverCallback:
Collaboration diagram for chrono::robosimian::RS_DriverCallback:

Public Member Functions

 RS_DriverCallback (RoboSimian *robot)
virtual void OnPhaseChange (RS_Driver::Phase old_phase, RS_Driver::Phase new_phase) override
 Function called on each phase change.
double GetDistance () const
 Get distance traveled from last phase change.
double GetDuration () const
 Get time elapsed since last phase change.
double GetAvgSpeed () const
 Get average robot speed since last phase change.

Public Attributes

double m_start_x
 location at start of current phase
double m_start_time
 time at start of current phase

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_models/robot/robosimian/RoboSimian.h
  • /builds/uwsbel/chrono/src/chrono_models/robot/robosimian/RoboSimian.cpp