Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

naoqi-interface.l: enable to pass string as joint-name #1919

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
Loading