#include <motion_sensor.H>
Public Member Functions | |
| motion_sensor_t (sim_world_object_t *parent, timer_t *timer) | |
| virtual | ~motion_sensor_t () |
| void | update_motion_data () |
| double | get_heading () |
| double | get_roll () |
| double | get_pitch () |
| void | update_position (dBodyID carb) |
| void | command (int cmd, double value) |
| void | simulate_component (dBodyID carb) |
Private Attributes | |
| sim_world_object_t * | m_robot |
| double | m_roll |
| double | m_pitch |
| double | m_heading |
| motion_observer_t * | m_motion_observer |
Friends | |
| class | motion_observer_t |
| motion_sensor_t::motion_sensor_t | ( | sim_world_object_t * | parent, | |
| timer_t * | timer | |||
| ) |
| motion_sensor_t::~motion_sensor_t | ( | ) | [virtual] |
| void cajun::motion_sensor_t::command | ( | int | cmd, | |
| double | value | |||
| ) | [inline] |
| double cajun::motion_sensor_t::get_heading | ( | ) | [inline] |
References m_heading.
Referenced by cajun::motion_observer_t::timeout().
| double cajun::motion_sensor_t::get_pitch | ( | ) | [inline] |
References m_pitch.
Referenced by cajun::motion_observer_t::timeout().
| double cajun::motion_sensor_t::get_roll | ( | ) | [inline] |
References m_roll.
Referenced by cajun::motion_observer_t::timeout().
| void cajun::motion_sensor_t::simulate_component | ( | dBodyID | carb | ) | [inline, virtual] |
Reimplemented from cajun::components_t.
| void motion_sensor_t::update_motion_data | ( | ) |
References cajun::sim_world_object_t::get_orientation(), m_heading, m_pitch, m_robot, and m_roll.
Referenced by motion_sensor_t(), and cajun::motion_observer_t::timeout().
| void cajun::motion_sensor_t::update_position | ( | dBodyID | carb | ) | [inline, virtual] |
Reimplemented from cajun::components_t.
friend class motion_observer_t [friend] |
Referenced by motion_sensor_t().
double cajun::motion_sensor_t::m_heading [private] |
Referenced by get_heading(), and update_motion_data().
Referenced by motion_sensor_t(), and ~motion_sensor_t().
double cajun::motion_sensor_t::m_pitch [private] |
Referenced by get_pitch(), and update_motion_data().
double cajun::motion_sensor_t::m_roll [private] |
Referenced by get_roll(), and update_motion_data().
1.6.1