iCub-main
Loading...
Searching...
No Matches
Functions | Variables
CanBusInertialMTB.cpp File Reference
#include <CanBusInertialMTB.h>
#include <yarp/os/Time.h>
#include <yarp/os/Log.h>
#include <iostream>
#include <cstring>
#include <string>
#include <iCubCanProto_skinMessages.h>
+ Include dependency graph for CanBusInertialMTB.cpp:

Go to the source code of this file.

Functions

bool checkRequiredParamIsString (yarp::os::Searchable &config, const std::string &paramName)
 
bool checkRequiredParamIsInt (yarp::os::Searchable &config, const std::string &paramName)
 
bool checkRequiredParamIsVectorOfInt (yarp::os::Searchable &config, const std::string &paramName, std::vector< int > &output_vector)
 
bool checkRequiredParamIsVectorOfString (yarp::os::Searchable &config, const std::string &paramName, std::vector< std::string > &output_vector)
 

Variables

const int CANBUS_INERTIAL_MTB_CAN_DRIVER_BUFFER_SIZE =2047
 
const double CANBUS_INERTIAL_MTB_TIMEOUT =0.1
 
const unsigned int CAN_MSG_CLASS_ACC_GYRO = 0x500
 
const unsigned int MSG_TYPE_GYRO = 0x000
 
const unsigned int MSG_TYPE_ACC = 0x001
 
const unsigned short CANBUS_INERTIAL_MTB_DEFAULT_SENSOR_PERIOD =10
 
const char CANBUS_INERTIAL_MTB_INTERNAL_ACC_BIT = 0x02
 
const char CANBUS_INERTIAL_MTB_EXTERNAL_ACC_BIT = 0x08
 
const char CANBUS_INERTIAL_MTB_EXTERNAL_GYRO_BIT = 0x04
 

Function Documentation

◆ checkRequiredParamIsInt()

bool checkRequiredParamIsInt ( yarp::os::Searchable &  config,
const std::string &  paramName 
)

Definition at line 52 of file CanBusInertialMTB.cpp.

◆ checkRequiredParamIsString()

bool checkRequiredParamIsString ( yarp::os::Searchable &  config,
const std::string &  paramName 
)

Definition at line 35 of file CanBusInertialMTB.cpp.

◆ checkRequiredParamIsVectorOfInt()

bool checkRequiredParamIsVectorOfInt ( yarp::os::Searchable &  config,
const std::string &  paramName,
std::vector< int > &  output_vector 
)

Definition at line 69 of file CanBusInertialMTB.cpp.

◆ checkRequiredParamIsVectorOfString()

bool checkRequiredParamIsVectorOfString ( yarp::os::Searchable &  config,
const std::string &  paramName,
std::vector< std::string > &  output_vector 
)

Definition at line 93 of file CanBusInertialMTB.cpp.

Variable Documentation

◆ CAN_MSG_CLASS_ACC_GYRO

const unsigned int CAN_MSG_CLASS_ACC_GYRO = 0x500

Definition at line 22 of file CanBusInertialMTB.cpp.

◆ CANBUS_INERTIAL_MTB_CAN_DRIVER_BUFFER_SIZE

const int CANBUS_INERTIAL_MTB_CAN_DRIVER_BUFFER_SIZE =2047

Definition at line 17 of file CanBusInertialMTB.cpp.

◆ CANBUS_INERTIAL_MTB_DEFAULT_SENSOR_PERIOD

const unsigned short CANBUS_INERTIAL_MTB_DEFAULT_SENSOR_PERIOD =10

Definition at line 26 of file CanBusInertialMTB.cpp.

◆ CANBUS_INERTIAL_MTB_EXTERNAL_ACC_BIT

const char CANBUS_INERTIAL_MTB_EXTERNAL_ACC_BIT = 0x08

Definition at line 29 of file CanBusInertialMTB.cpp.

◆ CANBUS_INERTIAL_MTB_EXTERNAL_GYRO_BIT

const char CANBUS_INERTIAL_MTB_EXTERNAL_GYRO_BIT = 0x04

Definition at line 30 of file CanBusInertialMTB.cpp.

◆ CANBUS_INERTIAL_MTB_INTERNAL_ACC_BIT

const char CANBUS_INERTIAL_MTB_INTERNAL_ACC_BIT = 0x02

Definition at line 28 of file CanBusInertialMTB.cpp.

◆ CANBUS_INERTIAL_MTB_TIMEOUT

const double CANBUS_INERTIAL_MTB_TIMEOUT =0.1

Definition at line 18 of file CanBusInertialMTB.cpp.

◆ MSG_TYPE_ACC

const unsigned int MSG_TYPE_ACC = 0x001

Definition at line 24 of file CanBusInertialMTB.cpp.

◆ MSG_TYPE_GYRO

const unsigned int MSG_TYPE_GYRO = 0x000

Definition at line 23 of file CanBusInertialMTB.cpp.