Skip to content

Commit

Permalink
Merge branch 'master' into local_heat
Browse files Browse the repository at this point in the history
  • Loading branch information
liyixin135 committed Jul 27, 2024
2 parents 08bd367 + 14a4b3e commit 3669af1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rm_common/include/rm_common/decision/command_sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ class GimbalCommandSender : public TimeStampCommandSenderBase<rm_msgs::GimbalCmd
msg_.rate_pitch *= eject_sensitivity_;
}
}
void setGimbalTraj(double traj_yaw, double traj_pitch)
{
msg_.traj_yaw = traj_yaw;
msg_.traj_pitch = traj_pitch;
}
void setZero() override
{
msg_.rate_yaw = 0.;
Expand Down
5 changes: 5 additions & 0 deletions rm_msgs/msg/GimbalCmd.msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
uint8 RATE = 0
uint8 TRACK = 1
uint8 DIRECT = 2
uint8 TRAJ = 3

time stamp
uint8 mode
Expand All @@ -14,3 +15,7 @@ float64 accel_pitch
# TRACK/DIRECT
float64 bullet_speed
geometry_msgs/PointStamped target_pos

#TRAJ
float64 traj_yaw
float64 traj_pitch

0 comments on commit 3669af1

Please sign in to comment.