Enumerates the control modes of a Uav.
| Acceleration3D UavVar::acceleration | ( | ) | [inherited] |
Gets accelerations in global frame.
Luca Ricci mod.
| MipResources::asctecUav::asctecUav | ( | int | argc, | |
| const char ** | argv | |||
| ) | [inherited] |
Constructor with arguments.
implement handshaking and ack sending from hummingbird
define variables in the namespace (asctecUavComm::CTRL_FLAGS_SEND_ENABLE_CONTROL)
| MipResources::asctecUavOptions::asctecUavOptions | ( | ) | [inline, inherited] |
This should be an angle.
| bool MipResources::HummingBirdUav::askExclusiveAccess | ( | Time | timeout | ) | [inline, inherited] |
| Orientation3D UavVar::attitude | ( | ) | [inherited] |
Gets attitude.
| unsigned short MipResources::HummingBirdUavComm::crc16 | ( | void * | data, | |
| unsigned short | cnt | |||
| ) | [inherited] |
Implements crc16 algorithm.
| data | Pointer to data to be checked. | |
| cnt | Number of updatese for crc16 (sizeof(data)). Check the implementation (and improve reliability) |
| bool MipResources::HummingBirdUav::ctrlAskExclusiveAccess | ( | Time | timeout | ) | [inline, inherited] |
| void MipResources::HummingBirdUav::ctrlLeaveExclusiveAccess | ( | ) | [inline, inherited] |
| void MipResources::HummingBirdUav::ctrlLoop | ( | ) | [inherited] |
| void MipResources::asctecUav::ctrlLoop | ( | ) | [inherited] |
| void MipResources::HummingBirdUav::dataLoop | ( | ) | [inherited] |
| void MipResources::asctecUav::dataLoop | ( | ) | [inherited] |
| void MipResources::HummingBirdUav::doClean | ( | ) | [inline, inherited] |
| Orientation3D MipResources::HummingBirdUav::getAttitude | ( | Time & | t | ) | [inline, inherited] |
| Orientation3D MipResources::asctecUav::getAttitude | ( | Time & | t | ) | [inline, inherited] |
| HummingBirdUavComm* MipResources::HummingBirdUav::getCom | ( | ) | [inline, inherited] |
Gets HummingBirdUavComm pointer.
| HummingBirdUavComm* MipResources::asctecUav::getCom | ( | ) | [inline, inherited] |
Gets asctecUavComm pointer.
| string MipResources::UavOptions::getObjectName | ( | ) | const [inline, virtual, inherited] |
| string MipResources::HummingBirdUavComm::getObjectName | ( | ) | const [inline, inherited] |
Mandatory from MIPObject class.
| string MipResources::HummingBirdUavOptions::getObjectName | ( | ) | const [inline, virtual, inherited] |
| string MipResources::asctecUavOptions::getObjectName | ( | ) | const [inline, virtual, inherited] |
| virtual UavPar* MipResources::Uav::getPar | ( | void | ) | [inline, virtual, inherited] |
Gets uav parameters pointer.
| ResourcePlate MipResources::HummingBirdUav::getPlate | ( | ) | const [inline, virtual, inherited] |
| ResourcePlate MipResources::asctecUav::getPlate | ( | ) | const [inline, virtual, inherited] |
| uint MipResources::HummingBirdUavComm::getPort | ( | ) | [inline, inherited] |
getPort: returns serial port file descriptor.
| Position3D MipResources::HummingBirdUav::getPosition | ( | Time & | t | ) | [inline, inherited] |
| Position3D MipResources::asctecUav::getPosition | ( | Time & | t | ) | [inline, inherited] |
| bool MipResources::UavVar::getPtammInitProxy | ( | ) | [inline, inherited] |
| int UavVar::getRemoteControlled | ( | ) | [inherited] |
Returns control status of uav.
| virtual UavVar* MipResources::Uav::getVar | ( | void | ) | [inline, virtual, inherited] |
Gets uav variables pointer.
| Decimal MipResources::UavPar::height | ( | ) | [inline, inherited] |
get width
| MipResources::HummingBirdUav::HummingBirdUav | ( | int | argc, | |
| const char ** | argv | |||
| ) | [inherited] |
Constructor with arguments.
implement handshaking and ack sending from hummingbird
define variables in the namespace (HummingBirdUavComm::CTRL_FLAGS_SEND_ENABLE_CONTROL)
| MipResources::HummingBirdUavComm::HummingBirdUavComm | ( | const char * | portname | ) | [inherited] |
Constructor with single parameter.
| portname | Name of the serial port linked to XBee communication device. |
| MipResources::HummingBirdUavComm::HummingBirdUavComm | ( | int | argc, | |
| const char * | argv[] | |||
| ) | [inherited] |
Constructor with parameters.
| portname | Name of the serial port linked to XBee communication device. |
| MipResources::HummingBirdUavOptions::HummingBirdUavOptions | ( | ) | [inline, inherited] |
This should be an angle.
| int MipResources::UavPar::id | ( | void | ) | [inline, inherited] |
get id
| void MipResources::HummingBirdUav::leaveExclusiveAccess | ( | ) | [inline, inherited] |
| Decimal MipResources::UavPar::lenght | ( | ) | [inline, inherited] |
get lenght
| Position3D UavVar::localOmega | ( | ) | [inherited] |
Gets angular velocites in global frame.
| Position3D UavVar::localVelocity | ( | ) | [inherited] |
Gets velocites in local frame.
| string MipResources::UavPar::name | ( | ) | [inline, inherited] |
get name
| Position3D UavVar::omega | ( | ) | [inherited] |
Gets angular velocites in local frame.
| UavPar& MipResources::UavPar::operator= | ( | const UavPar & | r | ) | [inline, inherited] |
assigment operator =
| Position3D UavVar::position | ( | ) | [inherited] |
| string MipResources::UavPar::print | ( | ) | [inline, inherited] |
print params
| Time UavVar::quadTime | ( | ) | [inherited] |
Gets time of ?.
| virtual bool MipResources::Uav::readAllData | ( | ) | [pure virtual, inherited] |
| bool MipResources::HummingBirdUav::readAllData | ( | ) | [inline, virtual, inherited] |
| virtual bool MipResources::Uav::readAttitude | ( | ) | [pure virtual, inherited] |
| bool MipResources::HummingBirdUav::readAttitude | ( | ) | [inline, virtual, inherited] |
Gets attitude.
| t | Time variable to store timestamp of pose. |
Implements MipResources::Uav.
| bool MipResources::asctecUav::readAttitude | ( | ) | [inline, virtual, inherited] |
Gets attitude.
| t | Time variable to store timestamp of pose. |
Implements MipResources::Uav.
| virtual bool MipResources::Uav::readPosition | ( | ) | [pure virtual, inherited] |
| bool MipResources::HummingBirdUav::readPosition | ( | ) | [inline, virtual, inherited] |
| bool MipResources::asctecUav::readPosition | ( | ) | [inline, virtual, inherited] |
| virtual bool MipResources::Uav::readVelocity | ( | ) | [pure virtual, inherited] |
| bool MipResources::HummingBirdUav::readVelocity | ( | ) | [inline, virtual, inherited] |
Gets velocity.
| t | Time variable to store timestamp of pose. |
Implements MipResources::Uav.
| bool MipResources::asctecUav::readVelocity | ( | ) | [inline, virtual, inherited] |
Gets velocity.
| t | Time variable to store timestamp of pose. |
Implements MipResources::Uav.
| int MipResources::HummingBirdUavComm::receive | ( | void * | buffer, | |
| unsigned short | numChar | |||
| ) | [inherited] |
Low level function. Simply receive a specified number of chars on port.
| buffer | Pointer to buffer to store read data (note: memory should be allocated). | |
| numChar | number of characters to be read. |
| int MipResources::HummingBirdUavComm::requestData | ( | unsigned short | dataType | ) | [inherited] |
Send a message of data request to the HummingBird.
| dataType | Code for data type, defined in HBstruct.h |
| int MipResources::HummingBirdUavComm::send | ( | void * | msg, | |
| unsigned short | size | |||
| ) | [inherited] |
Low level function. Simply send an array of char on port.
| msg | Pointer to the message to be send. |
| virtual bool MipResources::Uav::setAcceleration | ( | Acceleration3D | p | ) | [pure virtual, inherited] |
| bool MipResources::HummingBirdUav::setAcceleration | ( | Acceleration3D | p | ) | [inline, virtual, inherited] |
| bool MipResources::asctecUav::setAcceleration | ( | Acceleration3D | p | ) | [inline, virtual, inherited] |
| virtual bool MipResources::Uav::setAttitude | ( | Orientation3D & | oDes | ) | [pure virtual, inherited] |
Sets Uav attitude.
| oDes | Orientation3D object mantaining desired attitude. |
Implemented in MipResources::asctecUav, and MipResources::HummingBirdUav.
| bool MipResources::HummingBirdUav::setAttitude | ( | Orientation3D & | oDes | ) | [virtual, inherited] |
Sets Uav attitude.
| oDes | Orientation3D object mantaining desired attitude. |
Implements MipResources::Uav.
| bool MipResources::asctecUav::setAttitude | ( | Orientation3D & | oDes | ) | [virtual, inherited] |
Sets Uav attitude.
| oDes | Orientation3D object mantaining desired attitude. |
Implements MipResources::Uav.
| bool MipResources::HummingBirdUav::setControllersGains | ( | Decimal | height_pid_des[3] | ) | [inherited] |
Sets HummingBird Controllers Gains (see HBstructs.h).
| height_pid_des | Vector of Decimal (3 values) for PID height control ([0] = proportional; [1] = integral; [2] = derivative). |
| bool MipResources::asctecUav::setControllersGains | ( | Decimal | height_pid_des[3] | ) | [inherited] |
Sets asctec Controllers Gains (see HBstructs.h).
| height_pid_des | Vector of Decimal (3 values) for PID height control ([0] = proportional; [1] = integral; [2] = derivative). |
| bool MipResources::HummingBirdUav::setFiltersGains | ( | Decimal | sonar_h_filt_des[2] | ) | [inherited] |
Sets HummingBird Filters Gains (see HBstructs.h).
| sonar_h_filt_des | Vector of Decimal (2 values) for sonar measurements filter. |
| bool MipResources::asctecUav::setFiltersGains | ( | Decimal | sonar_h_filt_des[2] | ) | [inherited] |
Sets asctec Filters Gains (see HBstructs.h).
| sonar_h_filt_des | Vector of Decimal (2 values) for sonar measurements filter. |
| void MipResources::UavPar::setHeight | ( | Decimal | r | ) | [inline, protected, inherited] |
sets the height
| void MipResources::UavPar::setId | ( | int | i | ) | [inline, protected, inherited] |
sets the id
| void MipResources::UavPar::setLength | ( | Decimal | r | ) | [inline, protected, inherited] |
sets the lenght
| void MipResources::UavPar::setName | ( | string | n | ) | [inline, protected, inherited] |
sets the name
| virtual bool MipResources::Uav::setPose | ( | Pose3D & | pDes, | |
| short | ctrlIn = 0 | |||
| ) | [pure virtual, inherited] |
Sets Uav pose.
| pDes | Pose3D object mantaining desired pose. | |
| ctrlIn | Enabling for roll,pitch,yaw thrust/height/GPS ctrl. |
Implemented in MipResources::asctecUav, and MipResources::HummingBirdUav.
| bool MipResources::HummingBirdUav::setPose | ( | Pose3D & | pDes, | |
| short | ctrlIn | |||
| ) | [virtual, inherited] |
Sets Uav pose.
| pDes | Pose3D object mantaining desired pose. | |
| ctrlIn | ctrl byte to enable roll, pitch, yaw, thrust/height/GPS control |
Implements MipResources::Uav.
| bool MipResources::asctecUav::setPose | ( | Pose3D & | pDes, | |
| short | ctrlIn | |||
| ) | [virtual, inherited] |
Sets Uav pose.
| pDes | Pose3D object mantaining desired pose. | |
| ctrlIn | ctrl byte to enable roll, pitch, yaw, thrust/height/GPS control |
Implements MipResources::Uav.
| virtual bool MipResources::Uav::setPosition | ( | Position3D | p, | |
| Velocity3D | v = Velocity3D(0.0, 0.0, 0.0), |
|||
| Acceleration3D | a = Acceleration3D(0.0, 0.0, 0.0) | |||
| ) | [pure virtual, inherited] |
| bool MipResources::HummingBirdUav::setPosition | ( | Position3D | p, | |
| Velocity3D | v = Velocity3D(0.0,0.0,0.0), |
|||
| Acceleration3D | a = Acceleration3D(0.0,0.0,0.0) | |||
| ) | [virtual, inherited] |
Sets position value.
Implements MipResources::Uav.
| bool MipResources::asctecUav::setPosition | ( | Position3D | p, | |
| Velocity3D | v = Velocity3D(0.0,0.0,0.0), |
|||
| Acceleration3D | a = Acceleration3D(0.0,0.0,0.0) | |||
| ) | [virtual, inherited] |
Sets position value.
Implements MipResources::Uav.
| void UavVar::setPositionVal | ( | Position3D & | p | ) | [inherited] |
| void MipResources::UavVar::setPtammInitProxy | ( | bool | value | ) | [inline, inherited] |
| void UavVar::setRemoteControlled | ( | int | newStatus | ) | [inherited] |
Set control status of uav.
| newStatus,: | 0 onboard, 1 remote. |
| virtual bool MipResources::Uav::setStatus | ( | Orientation3D & | oDes, | |
| Decimal & | tdes | |||
| ) | [pure virtual, inherited] |
Sets Uav status.
| oDes | Desired Attitude. | |
| tDes | Deisred thrust ( range [0,1] ). |
Implemented in MipResources::asctecUav, and MipResources::HummingBirdUav.
| bool MipResources::HummingBirdUav::setStatus | ( | Orientation3D & | pDes, | |
| Decimal & | tDes | |||
| ) | [virtual, inherited] |
Sets Uav status.
| pDes | Desired Pose. | |
| tDes | Deisred thrust ( range [0,1] ). |
Implements MipResources::Uav.
| bool MipResources::asctecUav::setStatus | ( | Orientation3D & | pDes, | |
| Decimal & | tDes | |||
| ) | [virtual, inherited] |
Sets Uav status.
| pDes | Desired Pose. | |
| tDes | Deisred thrust ( range [0,1] ). |
Implements MipResources::Uav.
| virtual bool MipResources::Uav::setThrust | ( | Decimal | tdes | ) | [pure virtual, inherited] |
Sets Uav thrust.
| tDes | Decimal for thrust ( range [0,1] ). |
Implemented in MipResources::asctecUav, and MipResources::HummingBirdUav.
| bool MipResources::HummingBirdUav::setThrust | ( | Decimal | tDes | ) | [virtual, inherited] |
Sets Uav thrust.
| tDes | Decimal for thrust ( range [0,1] ). |
Implements MipResources::Uav.
| bool MipResources::asctecUav::setThrust | ( | Decimal | tDes | ) | [virtual, inherited] |
Sets Uav thrust.
| tDes | Decimal for thrust ( range [0,1] ). |
Implements MipResources::Uav.
| void UavVar::setTime | ( | Time | newTime | ) | [inherited] |
Sets time of last measures.
| t | New time value. |
| void UavVar::setTimeQuad | ( | Time | newTime | ) | [inherited] |
Sets time of ?.
| t | New time value. |
| virtual bool MipResources::Uav::setVelocity | ( | Velocity3D | p, | |
| Acceleration3D | a = Acceleration3D(0.0, 0.0, 0.0) | |||
| ) | [pure virtual, inherited] |
Sets velocity vector value.
Implemented in MipResources::asctecUav, and MipResources::HummingBirdUav.
| bool MipResources::HummingBirdUav::setVelocity | ( | Velocity3D | p, | |
| Acceleration3D | a | |||
| ) | [inline, virtual, inherited] |
| bool MipResources::asctecUav::setVelocity | ( | Velocity3D | p, | |
| Acceleration3D | a | |||
| ) | [inline, virtual, inherited] |
| void MipResources::UavPar::setWidth | ( | Decimal | r | ) | [inline, protected, inherited] |
sets the width
| virtual bool MipResources::Uav::setYaw | ( | Angle | yaw | ) | [pure virtual, inherited] |
Sets Uav yaw.
| yaw | Angle for yaw. |
Implemented in MipResources::asctecUav, and MipResources::HummingBirdUav.
| bool MipResources::HummingBirdUav::setYaw | ( | Angle | yaw | ) | [inline, virtual, inherited] |
Sets Uav yaw.
| yaw | Angle for yaw. |
Implements MipResources::Uav.
| bool MipResources::asctecUav::setYaw | ( | Angle | yaw | ) | [inline, virtual, inherited] |
Sets Uav yaw.
| yaw | Angle for yaw. |
Implements MipResources::Uav.
| void MipResources::HummingBirdUav::startCtrlLoop | ( | ) | [inline, inherited] |
| void MipResources::HummingBirdUav::startDataLoop | ( | ) | [inline, inherited] |
| void MipResources::HummingBirdUav::stopCtrlLoop | ( | ) | [inline, inherited] |
| void MipResources::HummingBirdUav::stopDataLoop | ( | ) | [inline, inherited] |
| Time UavVar::time | ( | ) | [inherited] |
Gets time of last measures.
| int MipResources::HummingBirdUavComm::transmitControl | ( | struct LABROB_CTRL_INPUT & | ctrl | ) | [inherited] |
Transmits a single control sequence (control input).
| ctrl | Pointer to CONTROL_INPUT struct, defined in HBstructs.h |
| int MipResources::HummingBirdUavComm::transmitControlFlags | ( | struct LABROB_CTRL_FLAGS & | ctrl | ) | [inherited] |
Transmits a single control sequence (control flags).
| ctrl | Pointer to LABROB_CTRL_FLAGS struct, defined in HBstructs.h |
| int MipResources::HummingBirdUavComm::transmitControlGains | ( | struct LABROB_CONTROLLERS_GAINS & | ctrl | ) | [inherited] |
Transmits a single control sequence (controllers gains).
| ctrl | Pointer to LABROB_CONTROLLERS_GAINS struct, defined in HBstructs.h |
| int MipResources::HummingBirdUavComm::transmitFilterGains | ( | struct LABROB_FILTERS_GAINS & | ctrl | ) | [inherited] |
Transmits a single control sequence (filters gains).
| ctrl | Pointer to LABROB_FILTERS_GAINS struct, defined in HBstructs.h |
| int MipResources::HummingBirdUavComm::transmitPoseInput | ( | struct LABROB_POSE_INPUT & | ctrl | ) | [inherited] |
Transmits a single control sequence (pose informations).
| ctrl | Pointer to LABROB_POSE_INPUT struct, defined in HBstructs.h |
| MipResources::Uav::Uav | ( | int | argc, | |
| const char * | argv[] | |||
| ) | [inline, inherited] |
options constructor (this is the constructor called using the scheduler)
| MipResources::Uav::Uav | ( | ) | [inline, inherited] |
null constructor
| MipResources::UavOptions::UavOptions | ( | ) | [inline, inherited] |
| MipResources::UavPar::UavPar | ( | const UavPar & | r | ) | [inline, inherited] |
copy constructor
| MipResources::UavPar::UavPar | ( | ) | [inline, inherited] |
default constructor
| UavVar::UavVar | ( | ) | [inherited] |
default constructor
| Velocity3D UavVar::velocity | ( | ) | [inherited] |
Gets velocites in global frame.
| int MipResources::HummingBirdUavComm::waitForData | ( | void * | dataP, | |
| int & | packet_descriptor | |||
| ) | [inherited] |
Starts a loop waiting for data structs.
| dataP | Pointer to char[MAX_DATA_SIZE] | |
| packet_descriptor | Code for data type, defined in HBstruct.h |
Check struct length is correct: struct_length[struct_d]
| Decimal MipResources::UavPar::width | ( | ) | [inline, inherited] |
get width
| MipResources::asctecUav::~asctecUav | ( | ) | [inherited] |
Destructor.
| MipResources::HummingBirdUav::~HummingBirdUav | ( | ) | [inherited] |
Destructor.
| MipResources::HummingBirdUavComm::~HummingBirdUavComm | ( | ) | [inherited] |
Destructor.
Acceleration3D MipResources::UavVar::_accel [protected, inherited] |
Luca Ricci mod.
Orientation3D MipResources::UavVar::_attitude [protected, inherited] |
Attitude values in global frame.
PositionDetector3D* MipResources::Uav::_gps [protected, inherited] |
abstract Robot gps
Time MipResources::UavVar::_lastTime [protected, inherited] |
Time of last measured values (pc time).
Time MipResources::UavVar::_lastTimeQuad [protected, inherited] |
Time of last measured values (as sent from quadrotor).
Position3D MipResources::UavVar::_localOmega [protected, inherited] |
Attitude angular velocities in local frame.
Position3D MipResources::UavVar::_localVelocity [protected, inherited] |
Actual velocity of robot in local frame.
Position3D MipResources::UavVar::_omega [protected, inherited] |
Attitude angular velocities in global frame.
UavPar* MipResources::Uav::_par [protected, inherited] |
abstract Robot parameters
UavVar* MipResources::Uav::_var [protected, inherited] |
abstract Robot variables
pthread_mutex_t MipResources::UavVar::_varMutex [protected, inherited] |
Velocity3D MipResources::UavVar::_velocity [protected, inherited] |
Actual velocity of robot in global frame.
UavModes MipResources::UavVar::controlMode [inherited] |
Uav control mode.
Acceleration3D MipResources::UavVar::desAcc [inherited] |
Desired acceleration.
Orientation3D MipResources::UavVar::desAtt [inherited] |
Desired attitude.
Position3D MipResources::UavVar::desPosi [inherited] |
Desired position.
Decimal MipResources::UavVar::desThr [inherited] |
Desired thrust.
Velocity3D MipResources::UavVar::desVel [inherited] |
Desired velocity.
Angle MipResources::UavVar::desYaw [inherited] |
Desired yaw.
IntOption* MipResources::asctecUavOptions::fdata_send_rate [inherited] |
bool MipResources::Uav::gpsActive [protected, inherited] |
IntOption* MipResources::asctecUavOptions::h_sonar_d_gain [inherited] |
IntOption* MipResources::asctecUavOptions::h_sonar_i_gain [inherited] |
IntOption* MipResources::asctecUavOptions::h_sonar_p_gain [inherited] |
IntOption* MipResources::asctecUavOptions::h_sonar_rate [inherited] |
DecimalOption* MipResources::asctecUavOptions::height_ref [inherited] |
StringOption* MipResources::asctecUavOptions::log_name [inherited] |
StringOption* MipResources::asctecUavOptions::log_path [inherited] |
BoolOption* MipResources::HummingBirdUavOptions::make_log [inherited] |
BoolOption* MipResources::asctecUavOptions::make_log [inherited] |
IntOption* MipResources::HummingBirdUavOptions::max_input [inherited] |
IntOption* MipResources::asctecUavOptions::max_input [inherited] |
bool MipResources::UavVar::ptammInitProxy [protected, inherited] |
IntOption* MipResources::HummingBirdUavOptions::read_rate [inherited] |
IntOption* MipResources::asctecUavOptions::read_rate [inherited] |
int MipResources::UavVar::remCtrl [protected, inherited] |
Represent type of control active on uav.
IntOption* MipResources::HummingBirdUavOptions::send_rate [inherited] |
IntOption* MipResources::asctecUavOptions::send_rate [inherited] |
const char* MipResources::UavModesNames[UAV_MODE_NUM] [static] |
Initial value:
{
"FreeMode",
"PositionMode",
"VelocityMode",
"AccelerationMode"
}
BoolOption* MipResources::HummingBirdUavOptions::use_ros [inherited] |
BoolOption* MipResources::asctecUavOptions::use_ros [inherited] |
BoolOption* MipResources::HummingBirdUavOptions::use_test [inherited] |
BoolOption* MipResources::asctecUavOptions::use_test [inherited] |
1.5.6