Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion jsk_naoqi_robot/naoqieus/naoqi-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,17 @@
(setq joint-name (list "LHand")))
(:rhand
(setq joint-name (list "RHand")))
(t
(setq joint-name joint)
(if (/= (length joint-name) (length stiffness))
(ros::ros-warn "length for 'joint' and 'sitffness' must be same")))
)
(send goal :goal :trajectory :joint_names joint-name)
(send goal :goal :trajectory :header :stamp (ros::time-now))
(send goal :goal :trajectory :points
(list (instance trajectory_msgs::JointTrajectoryPoint
:init
:positions (fill (instantiate float-vector (length joint-name)) stiffness)
:positions (if (numberp stiffness) (fill (instantiate float-vector (length joint-name)) stiffness) stiffness)
:time_from_start (ros::time 1))))
(send joint-stiffness-trajectory-action :send-goal goal)
))
Expand Down