Skip to content

Commit

Permalink
enable go-pos in kinematics simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Nov 16, 2022
1 parent 06be468 commit 855272c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jsk_naoqi_robot/naoqieus/naoqi-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,15 @@
the robot moves relative to current position.
using [m] and [degree] is historical reason from original hrpsys code"
;; https://github.com/jsk-ros-pkg/jsk_pr2eus/blob/master/pr2eus/robot-interface.l#L867
(let (c (pose_msg (instance geometry_msgs::PoseStamped :init)))
(setq c (make-coords :pos (float-vector (* 1000 x) (* y 1000) 0)
:rpy (float-vector (deg2rad d) 0 0)))
(send pose_msg :header :frame_id "base_footprint")
(send pose_msg :pose (ros::coords->tf-pose c))
(ros::publish (format nil "~A/move_base_simple/goal" group-namespace) pose_msg)
))
(if (send self :simulation-modep)
(send-super :go-pos x y d)
(let (c (pose_msg (instance geometry_msgs::PoseStamped :init)))
(setq c (make-coords :pos (float-vector (* 1000 x) (* y 1000) 0)
:rpy (float-vector (deg2rad d) 0 0)))
(send pose_msg :header :frame_id "base_footprint")
(send pose_msg :pose (ros::coords->tf-pose c))
(ros::publish (format nil "~A/move_base_simple/goal" group-namespace) pose_msg)
)))

(:go-velocity
(x y d &optional (msec 1000) &key (stop t)) ;; [m/sec] [m/sec] [rad/sec]
Expand Down

0 comments on commit 855272c

Please sign in to comment.