Skip to content

Commit

Permalink
Do not load force-moment offset in simulation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Affonso-Gui committed Dec 20, 2018
1 parent eccd724 commit d987336
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions hrpsys_ros_bridge_tutorials/euslisp/hironxjsk-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
(send self :add-controller (read-from-string (format nil "~A-controller" limb))
:joint-enable-check t :create-actions t))
;; Load param to erase offset of force moment sensor
(send self :load-forcemoment-offset-param
(format nil "~A/models/~A-force-moment-offset.l"
(ros::resolve-ros-path "package://hrpsys_ros_bridge_tutorials")
(send robot :name))
:set-offset t)))
(unless (send self :simulation-modep)
(send self :load-forcemoment-offset-param
(format nil "~A/models/~A-force-moment-offset.l"
(ros::resolve-ros-path "package://hrpsys_ros_bridge_tutorials")
(send robot :name))
:set-offset t))))
(:define-all-ROSBridge-srv-methods
(&key (debug-view nil) (ros-pkg-name "hrpsys_ros_bridge"))
;; First, define ROSBridge method for old impedance controller
Expand Down

0 comments on commit d987336

Please sign in to comment.