rm_control
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rm_common::PowerLimit Class Reference

#include <power_limit.h>

Public Types

enum  Mode {
  CHARGE = 0 , BURST = 1 , NORMAL = 2 , ALLOFF = 3 ,
  TEST = 4
}
 

Public Member Functions

 PowerLimit (ros::NodeHandle &nh)
 
void updateSafetyPower (int safety_power)
 
void updateState (uint8_t state)
 
void updateCapSwitchState (bool state)
 
void setGameRobotData (const rm_msgs::GameRobotStatus data)
 
void setChassisPowerBuffer (const rm_msgs::PowerHeatData data)
 
void setCapacityData (const rm_msgs::PowerManagementSampleAndStatusData data)
 
void setRefereeStatus (bool status)
 
void setStartBurstTime (const ros::Time start_burst_time)
 
ros::Time getStartBurstTime () const
 
uint8_t getState ()
 
void setGyroPower (rm_msgs::ChassisCmd &chassis_cmd)
 
void setLimitPower (rm_msgs::ChassisCmd &chassis_cmd, bool is_gyro)
 

Member Enumeration Documentation

◆ Mode

Enumerator
CHARGE 
BURST 
NORMAL 
ALLOFF 
TEST 

Constructor & Destructor Documentation

◆ PowerLimit()

rm_common::PowerLimit::PowerLimit ( ros::NodeHandle & nh)
inline

Member Function Documentation

◆ getStartBurstTime()

ros::Time rm_common::PowerLimit::getStartBurstTime ( ) const
inline

◆ getState()

uint8_t rm_common::PowerLimit::getState ( )
inline

◆ setCapacityData()

void rm_common::PowerLimit::setCapacityData ( const rm_msgs::PowerManagementSampleAndStatusData data)
inline

◆ setChassisPowerBuffer()

void rm_common::PowerLimit::setChassisPowerBuffer ( const rm_msgs::PowerHeatData data)
inline

◆ setGameRobotData()

void rm_common::PowerLimit::setGameRobotData ( const rm_msgs::GameRobotStatus data)
inline

◆ setGyroPower()

void rm_common::PowerLimit::setGyroPower ( rm_msgs::ChassisCmd & chassis_cmd)
inline

◆ setLimitPower()

void rm_common::PowerLimit::setLimitPower ( rm_msgs::ChassisCmd & chassis_cmd,
bool is_gyro )
inline

◆ setRefereeStatus()

void rm_common::PowerLimit::setRefereeStatus ( bool status)
inline

◆ setStartBurstTime()

void rm_common::PowerLimit::setStartBurstTime ( const ros::Time start_burst_time)
inline

◆ updateCapSwitchState()

void rm_common::PowerLimit::updateCapSwitchState ( bool state)
inline

◆ updateSafetyPower()

void rm_common::PowerLimit::updateSafetyPower ( int safety_power)
inline

◆ updateState()

void rm_common::PowerLimit::updateState ( uint8_t state)
inline

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