File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
rm_common/include/rm_common/decision Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -505,6 +505,10 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
505505 {
506506 deploy_flag_ = flag;
507507 }
508+ bool getDeployState ()
509+ {
510+ return deploy_flag_;
511+ }
508512 void setSpeedDesAndWheelSpeedDes ()
509513 {
510514 switch (heat_limit_->getSpeedLimit ())
@@ -582,7 +586,7 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
582586 double total_extra_wheel_speed_{};
583587 double deploy_wheel_speed_{};
584588 bool auto_wheel_speed_ = false ;
585- bool deploy_flag_{} ;
589+ bool deploy_flag_ = false ;
586590 rm_msgs::TrackData track_data_;
587591 rm_msgs::GimbalDesError gimbal_des_error_;
588592 rm_msgs::ShootBeforehandCmd shoot_beforehand_cmd_;
@@ -591,6 +595,24 @@ class ShooterCommandSender : public TimeStampCommandSenderBase<rm_msgs::ShootCmd
591595 uint8_t armor_type_{};
592596};
593597
598+ class UseLioCommandSender : public CommandSenderBase <std_msgs::Bool>
599+ {
600+ public:
601+ explicit UseLioCommandSender (ros::NodeHandle& nh) : CommandSenderBase<std_msgs::Bool>(nh)
602+ {
603+ }
604+
605+ void setUseLio (bool flag)
606+ {
607+ msg_.data = flag;
608+ }
609+ bool getUseLio () const
610+ {
611+ return msg_.data ;
612+ }
613+ void setZero () override {};
614+ };
615+
594616class BalanceCommandSender : public CommandSenderBase <std_msgs::UInt8>
595617{
596618public:
You can’t perform that action at this time.
0 commit comments