Skip to content

Commit

Permalink
[baxtereus/baxter-interface.l] fix removing torso joint in :ros-state…
Browse files Browse the repository at this point in the history
…-callback of baxter-interface class.
  • Loading branch information
mmurooka committed Jun 19, 2016
1 parent 858436f commit 88d6d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsk_baxter_robot/baxtereus/baxter-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@

(:ros-state-callback
(msg)
(let ((robot-state-names (cdr (assoc :name robot-state))) (robot-msg-names (send msg :name)) (torso-index))
(let ((robot-msg-names (send msg :name)) (torso-index))
;;Remove toros_t0 . We think this is not the rotational-joint
(setq torso-index (position "torso_t0" robot-msg-names :test #'string=))
(send msg :name ( remove "torso_t0" robot-state-names :test #'string=))
(send msg :name ( remove "torso_t0" robot-msg-names :test #'string=))
(when torso-index
(dolist (key '(:position :velocity :effort) )
(send msg key (concatenate float-vector
Expand Down

0 comments on commit 88d6d03

Please sign in to comment.