Skip to content

Commit

Permalink
Merge pull request #1731 from knorth55/naoqi-move-base
Browse files Browse the repository at this point in the history
[naoeus] use robot-move-base-interface for naoqi-interface
  • Loading branch information
k-okada authored Nov 17, 2022
2 parents 3a34919 + 855272c commit ee8662b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions jsk_naoqi_robot/naoqieus/naoqi-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(ros::load-ros-package "nao_interaction_msgs")

(defclass naoqi-interface
:super robot-interface
:super robot-move-base-interface
:slots (naoqi-namespace dcm-namespace joint-stiffness-trajectory-action body-pose-with-speed-action)
)

Expand Down 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 ee8662b

Please sign in to comment.