Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion rm_common/include/rm_common/decision/command_sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,10 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
{
deploy_flag_ = flag;
}
bool getDeployState()
{
return deploy_flag_;
}
void setSpeedDesAndWheelSpeedDes()
{
switch (heat_limit_->getSpeedLimit())
Expand Down Expand Up @@ -582,7 +586,7 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
double total_extra_wheel_speed_{};
double deploy_wheel_speed_{};
bool auto_wheel_speed_ = false;
bool deploy_flag_{};
bool deploy_flag_ = false;
rm_msgs::TrackData track_data_;
rm_msgs::GimbalDesError gimbal_des_error_;
rm_msgs::ShootBeforehandCmd shoot_beforehand_cmd_;
Expand All @@ -591,6 +595,24 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
uint8_t armor_type_{};
};

class UseLioCommandSender : public CommandSenderBase<std_msgs::Bool>
{
public:
explicit UseLioCommandSender(ros::NodeHandle& nh) : CommandSenderBase<std_msgs::Bool>(nh)
{
}

void setUseLio(bool flag)
{
msg_.data = flag;
}
bool getUseLio() const
{
return msg_.data;
}
void setZero() override{};
};

class BalanceCommandSender : public CommandSenderBase<std_msgs::UInt8>
{
public:
Expand Down
Loading