#include <diff_drive.hpp>
|  | 
| short | bound (const float &value) | 
|  | 
Definition at line 37 of file diff_drive.hpp.
 
      
        
          | xbot::DiffDrive::DiffDrive | ( |  | ) |  | 
      
 
 
  
  | 
        
          | short xbot::DiffDrive::bound | ( | const float & | value | ) |  |  | private | 
 
 
      
        
          | void xbot::DiffDrive::getWheelJointStates | ( | float & | wheel_left_angle, | 
        
          |  |  | float & | wheel_left_angle_rate, | 
        
          |  |  | float & | wheel_right_angle, | 
        
          |  |  | float & | wheel_right_angle_rate | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | std::vector< float > xbot::DiffDrive::pointVelocity | ( |  | ) | const | 
      
 
 
      
        
          | void xbot::DiffDrive::reset | ( |  | ) |  | 
      
 
 
      
        
          | void xbot::DiffDrive::setVelocityCommands | ( | const float & | vx, | 
        
          |  |  | const float & | wz | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | void xbot::DiffDrive::update | ( | const unsigned int & | time_stamp, | 
        
          |  |  | const uint16_t & | left_encoder, | 
        
          |  |  | const uint16_t & | right_encoder, | 
        
          |  |  | ecl::Pose2D< double > & | pose_update, | 
        
          |  |  | ecl::linear_algebra::Vector3d & | pose_update_rates | 
        
          |  | ) |  |  | 
      
 
Updates the odometry from firmware stamps and encoders. 
Really horrible - could do with an overhaul.
- Parameters
- 
  
    | time_stamp |  |  | left_encoder |  |  | right_encoder |  |  | pose_update |  |  | pose_update_rates |  |  
 
Definition at line 54 of file diff_drive.cpp.
 
 
      
        
          | void xbot::DiffDrive::velocityCommands | ( | const float & | vx, | 
        
          |  |  | const float & | wz | 
        
          |  | ) |  |  | 
      
 
 
  
  | 
        
          | void xbot::DiffDrive::velocityCommands | ( | const std::vector< float > & | cmd | ) |  |  | inline | 
 
 
      
        
          | std::vector< float > xbot::DiffDrive::velocityCommands | ( |  | ) |  | 
      
 
 
  
  | 
        
          | float xbot::DiffDrive::wheel_bias | ( |  | ) | const |  | inline | 
 
 
  
  | 
        
          | float xbot::DiffDrive::angular_velocity |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::bias |  | private | 
 
 
  
  | 
        
          | int xbot::DiffDrive::imu_heading_offset |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::last_diff_time |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::last_rad_left |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::last_rad_right |  | private | 
 
 
  
  | 
        
          | unsigned short xbot::DiffDrive::last_tick_left |  | private | 
 
 
  
  | 
        
          | unsigned short xbot::DiffDrive::last_tick_right |  | private | 
 
 
  
  | 
        
          | unsigned int xbot::DiffDrive::last_timestamp |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::last_velocity_left |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::last_velocity_right |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::linear_velocity |  | private | 
 
 
  
  | 
        
          | std::vector<float> xbot::DiffDrive::point_velocity |  | private | 
 
 
  
  | 
        
          | ecl::Mutex xbot::DiffDrive::state_mutex |  | private | 
 
 
  
  | 
        
          | const float xbot::DiffDrive::tick_to_rad |  | private | 
 
 
  
  | 
        
          | ecl::Mutex xbot::DiffDrive::velocity_mutex |  | private | 
 
 
  
  | 
        
          | float xbot::DiffDrive::wheel_radius |  | private | 
 
 
The documentation for this class was generated from the following files: