Skip to content

Commit

Permalink
Merge pull request #1867 from sktometometo/PR/fix-unitreeeus-building
Browse files Browse the repository at this point in the history
Fix unitreeeus building
  • Loading branch information
k-okada authored Oct 12, 2023
2 parents 6fafd16 + fdc252c commit 8f2f3d3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jsk_unitree_robot/cross/repos/unitree.repos
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories:
unitree_ros:
type: git
url: https://github.com/unitreerobotics/unitree_ros.git
veresion: master
veresion: 5dee20c
unitree_ros_to_real:
type: git
url: https://github.com/k-okada/unitree_ros_to_real.git
Expand Down
6 changes: 3 additions & 3 deletions jsk_unitree_robot/unitree.rosinstall
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
uri: https://github.com/k-okada/unitree_legged_sdk.git
version: develop
- git:
# Use 50ff98 commit since unitree_ros has unitree_ros_to_real as submodule and
# causes https://github.com/jsk-ros-pkg/jsk_robot/issues/1858
# Use a version before 2e566b7 commit since unitree_ros has unitree_ros_to_real as submodule
# and it causes https://github.com/jsk-ros-pkg/jsk_robot/issues/1858
local-name: unitree_ros
uri: https://github.com/unitreerobotics/unitree_ros.git
version: 50ff982dfbd4b9d2d08f1a05d66f141ab9f8d7f9
version: 5dee20c
- git:
# waiting for https://github.com/unitreerobotics/unitree_ros_to_real/pull/22 - 25
local-name: unitree_ros_to_real
Expand Down
1 change: 1 addition & 0 deletions jsk_unitree_robot/unitreeeus/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*go1.l
*go1-simple.l
6 changes: 3 additions & 3 deletions jsk_unitree_robot/unitreeeus/go1-utils.l
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
(require :go1 "package://unitreeeus/go1.l")

(defun go1 () (setq *go1* (instance go1_description-robot :init)))
(defun go1 () (setq *go1* (instance go1-robot :init)))

;; euscollada can not generate end-coords without limbs...
;; head-end-coords:
;; parent : camera_optical_face_lk
;; translate : [0, -12.5, -6.7]
;; rotate : [0, 1, 0, 0]
(defmethod go1_description-robot
(defmethod go1-robot
(:head-end-coords (&rest args) (forward-message-to camera_optical_face_lk args))
)

;; define ik methods
(defmethod go1_description-robot
(defmethod go1-robot
(:fullbody-inverse-kinematics
;; see https://github.com/euslisp/jskeus/pull/349 for detail
(target-coords move-target &rest args &key
Expand Down
1 change: 1 addition & 0 deletions jsk_unitree_robot/unitreeeus/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

<run_depend>roseus</run_depend>
<run_depend>pr2eus</run_depend>
<run_depend>unitree_legged_msgs</run_depend>

<export>
</export>
Expand Down
2 changes: 1 addition & 1 deletion jsk_unitree_robot/unitreeeus/unitree-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
(:init
(&rest args)
(prog1
(send-super* :init :robot go1_description-robot :base-frame-id "base_lk" :odom-topic "/odom_combined" :base-controller-action-name nil args)
(send-super* :init :robot go1-robot :base-frame-id "base_lk" :odom-topic "/odom_combined" :base-controller-action-name nil args)
(setq body-pose-topic "/go1/body_pose")
(ros::advertise body-pose-topic geometry_msgs::Pose 1)
(setq cmd-vel-topic "/go1/cmd_vel")
Expand Down

0 comments on commit 8f2f3d3

Please sign in to comment.