gusimplewhiteboard
wb_kinematic_motor Struct Reference

Basic kinematic motor (i.e. More...

#include <wb_kinematic_motor.h>

Collaboration diagram for wb_kinematic_motor:

Public Member Functions

 PROPERTY (int16_t, speed) PROPERTY(int16_t
 Speed setting -32767 to 32767 in mm/s. More...
 
accel PROPERTY (uint16_t, odo) PROPERTY(bool
 Odometer used for storing odometry in mm (to ground) More...
 
accel motorOn PROPERTY (bool, encoderOn) wb_kinematic_motor()
 Not all motors have encoders, or encoders can be turned on/off. More...
 
 wb_kinematic_motor (const wb_kinematic_motor &other)
 Copy Constructor. More...
 
wb_kinematic_motoroperator= (const wb_kinematic_motor &other)
 Assignment Operator. More...
 

Detailed Description

Basic kinematic motor (i.e.

motor to ground) struct

Definition at line 92 of file wb_kinematic_motor.h.

Constructor & Destructor Documentation

◆ wb_kinematic_motor()

wb_kinematic_motor::wb_kinematic_motor ( const wb_kinematic_motor other)
inline

Copy Constructor.

Definition at line 115 of file wb_kinematic_motor.h.

Member Function Documentation

◆ operator=()

wb_kinematic_motor & wb_kinematic_motor::operator= ( const wb_kinematic_motor other)
inline

Assignment Operator.

Definition at line 123 of file wb_kinematic_motor.h.

◆ PROPERTY() [1/3]

accel motorOn wb_kinematic_motor::PROPERTY ( bool  ,
encoderOn   
)
inline

Not all motors have encoders, or encoders can be turned on/off.

Status of the Motor's Encoder (On = True /Off = False (Default)) padding to shut up the compiler on 64 bit systems Default constructor

Definition at line 106 of file wb_kinematic_motor.h.

◆ PROPERTY() [2/3]

wb_kinematic_motor::PROPERTY ( int16_t  ,
speed   
)

Speed setting -32767 to 32767 in mm/s.

Acceleration setting -32767 to 32767 in mm/s/s (zero means default acceleration)

◆ PROPERTY() [3/3]

accel wb_kinematic_motor::PROPERTY ( uint16_t  ,
odo   
)

Odometer used for storing odometry in mm (to ground)

Not all motors can be turned on/off, but it is possible Status of the Motor (On = True (Default)/Off = False)


The documentation for this struct was generated from the following file: