#include <IOTBot.h>
Definition at line 108 of file IOTBot.h.
◆ IOTBot()
Standard Constructor @params[in] chassisParams chassis parameters, including the map for assigning channels to position of wheels @params[in] motorParams motor parameters
Definition at line 9 of file IOTBot.cpp.
◆ ~IOTBot()
| iotbot::IOTBot::~IOTBot |
( |
| ) |
|
◆ calibrateCallback()
| bool iotbot::IOTBot::calibrateCallback |
( |
std_srvs::Empty::Request & |
request, |
|
|
std_srvs::Empty::Response & |
response |
|
) |
| |
|
private |
ROS service callback for triggering IMU calibration
- Returns
- success state
Definition at line 183 of file IOTBot.cpp.
◆ controlMotors()
| void iotbot::IOTBot::controlMotors |
( |
float |
vFwd, |
|
|
float |
vLeft, |
|
|
float |
omega |
|
) |
| |
|
private |
Normalize motion command and assign it to the channels
- Parameters
-
| [in] | vFwd | forward velocity (x-axis) |
| [in] | vLeft | velocity to the left (y-axis) |
| [in] | omega | angular velocity (around z-axis) |
Definition at line 299 of file IOTBot.cpp.
◆ enableCallback()
| bool iotbot::IOTBot::enableCallback |
( |
std_srvs::SetBool::Request & |
request, |
|
|
std_srvs::SetBool::Response & |
response |
|
) |
| |
|
private |
ROS service callback for enabling robot
- Parameters
-
| [in] | request | service request data |
| [out] | response | service response data |
- Returns
- success state
Definition at line 167 of file IOTBot.cpp.
◆ fixIMUZAxisCallback()
| bool iotbot::IOTBot::fixIMUZAxisCallback |
( |
std_srvs::SetBool::Request & |
request, |
|
|
std_srvs::SetBool::Response & |
response |
|
) |
| |
|
private |
ROS service callback for fixing the IMU's yaw angle estimation
- Parameters
-
| [in] | request | service request data |
| [out] | response | service response data |
- Returns
- success state
Definition at line 190 of file IOTBot.cpp.
◆ joyCallback()
| void iotbot::IOTBot::joyCallback |
( |
const sensor_msgs::Joy::ConstPtr & |
joy | ) |
|
|
private |
ROS joystick callback
- Parameters
-
| [in] | joy | message with joystick command |
Definition at line 198 of file IOTBot.cpp.
◆ run()
| void iotbot::IOTBot::run |
( |
| ) |
|
ROS main loop (blocking method)
Definition at line 70 of file IOTBot.cpp.
◆ velocityCallback()
| void iotbot::IOTBot::velocityCallback |
( |
const geometry_msgs::Twist::ConstPtr & |
cmd | ) |
|
|
private |
ROS command velocity callback
- Parameters
-
| [in] | cmd | message with velocity command |
Definition at line 294 of file IOTBot.cpp.
◆ _chassisParams
◆ _enableYMotion
| bool iotbot::IOTBot::_enableYMotion |
|
private |
◆ _lastCmd
◆ _motorParams
◆ _ms2rpm
| float iotbot::IOTBot::_ms2rpm |
|
private |
◆ _nh
◆ _omegaMax
| float iotbot::IOTBot::_omegaMax |
|
private |
◆ _pubCurrent
◆ _pubIMU
◆ _pubPose
◆ _pubRPM
◆ _pubTemp
◆ _pubToF
◆ _pubVoltage
◆ _rad2rpm
| float iotbot::IOTBot::_rad2rpm |
|
private |
◆ _rgb
| unsigned char iotbot::IOTBot::_rgb[3] |
|
private |
◆ _rpm
| float iotbot::IOTBot::_rpm[4] |
|
private |
◆ _rpm2ms
| float iotbot::IOTBot::_rpm2ms |
|
private |
◆ _rpm2rad
| float iotbot::IOTBot::_rpm2rad |
|
private |
◆ _shield
◆ _srvCali
◆ _srvEnable
◆ _srvFix
◆ _subJoy
◆ _subVel
◆ _vMax
| float iotbot::IOTBot::_vMax |
|
private |
The documentation for this class was generated from the following files: