rm_control
Loading...
Searching...
No Matches
rm_common::Vel2DCommandSender Class Reference

#include <command_sender.h>

Inheritance diagram for rm_common::Vel2DCommandSender:
Collaboration diagram for rm_common::Vel2DCommandSender:

Public Member Functions

 Vel2DCommandSender (ros::NodeHandle &nh)
 
void updateTrackData (const rm_msgs::TrackData &data)
 
void setLinearXVel (double scale)
 
void setLinearYVel (double scale)
 
void setAngularZVel (double scale)
 
void setAngularZVel (double scale, double limit)
 
void set2DVel (double scale_x, double scale_y, double scale_z)
 
void setZero () override
 
- Public Member Functions inherited from rm_common::CommandSenderBase< geometry_msgs::Twist >
 CommandSenderBase (ros::NodeHandle &nh)
 
void setMode (int mode)
 
virtual void sendCommand (const ros::Time &time)
 
virtual void updateGameRobotStatus (const rm_msgs::GameRobotStatus data)
 
virtual void updateGameStatus (const rm_msgs::GameStatus data)
 
virtual void updateCapacityData (const rm_msgs::PowerManagementSampleAndStatusData data)
 
virtual void updatePowerHeatData (const rm_msgs::PowerHeatData data)
 
geometry_msgs::Twist * getMsg ()
 

Protected Member Functions

void chassisCmdCallback (const rm_msgs::ChassisCmd::ConstPtr &msg)
 

Protected Attributes

LinearInterp max_linear_x_
 
LinearInterp max_linear_y_
 
LinearInterp max_angular_z_
 
double power_limit_ = 0.
 
double target_vel_yaw_threshold_ {}
 
double vel_direction_ = 1.
 
ros::Subscriber chassis_power_limit_subscriber_
 
rm_msgs::TrackData track_data_
 
- Protected Attributes inherited from rm_common::CommandSenderBase< geometry_msgs::Twist >
std::string topic_
 
uint32_t queue_size_
 
ros::Publisher pub_
 
geometry_msgs::Twist msg_
 

Constructor & Destructor Documentation

◆ Vel2DCommandSender()

rm_common::Vel2DCommandSender::Vel2DCommandSender ( ros::NodeHandle & nh)
inlineexplicit

Member Function Documentation

◆ chassisCmdCallback()

void rm_common::Vel2DCommandSender::chassisCmdCallback ( const rm_msgs::ChassisCmd::ConstPtr & msg)
inlineprotected

◆ set2DVel()

void rm_common::Vel2DCommandSender::set2DVel ( double scale_x,
double scale_y,
double scale_z )
inline

◆ setAngularZVel() [1/2]

void rm_common::Vel2DCommandSender::setAngularZVel ( double scale)
inline

◆ setAngularZVel() [2/2]

void rm_common::Vel2DCommandSender::setAngularZVel ( double scale,
double limit )
inline

◆ setLinearXVel()

void rm_common::Vel2DCommandSender::setLinearXVel ( double scale)
inline

◆ setLinearYVel()

void rm_common::Vel2DCommandSender::setLinearYVel ( double scale)
inline

◆ setZero()

void rm_common::Vel2DCommandSender::setZero ( )
inlineoverridevirtual

◆ updateTrackData()

void rm_common::Vel2DCommandSender::updateTrackData ( const rm_msgs::TrackData & data)
inline

Member Data Documentation

◆ chassis_power_limit_subscriber_

ros::Subscriber rm_common::Vel2DCommandSender::chassis_power_limit_subscriber_
protected

◆ max_angular_z_

LinearInterp rm_common::Vel2DCommandSender::max_angular_z_
protected

◆ max_linear_x_

LinearInterp rm_common::Vel2DCommandSender::max_linear_x_
protected

◆ max_linear_y_

LinearInterp rm_common::Vel2DCommandSender::max_linear_y_
protected

◆ power_limit_

double rm_common::Vel2DCommandSender::power_limit_ = 0.
protected

◆ target_vel_yaw_threshold_

double rm_common::Vel2DCommandSender::target_vel_yaw_threshold_ {}
protected

◆ track_data_

rm_msgs::TrackData rm_common::Vel2DCommandSender::track_data_
protected

◆ vel_direction_

double rm_common::Vel2DCommandSender::vel_direction_ = 1.
protected

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