Skip to content

Commit

Permalink
Merge pull request #495 from tkmtnt7000/PR-add-timestamp-for-play-sound
Browse files Browse the repository at this point in the history
[pr2eus] Add header timestamp to actiongoal topic in play-sound
  • Loading branch information
k-okada authored Jun 22, 2023
2 parents 8fc634d + d84d634 commit 16cb8fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pr2eus/speak.l
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
(when (eq (send ac :get-state) actionlib_msgs::GoalStatus::*active*)
(send ac :cancel-goal)
(send ac :wait-for-result :timeout 10))
(send goal :header :stamp (ros::time-now))
(send goal :goal :sound_request msg)
(setf (gethash topic-name *sound-play-clients*) ac)
(send ac :send-goal goal)
Expand Down

0 comments on commit 16cb8fa

Please sign in to comment.