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

[naoqieus] add led fading method (new version of #812) #999

Merged
merged 1 commit into from
Dec 5, 2018
Merged
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
26 changes: 26 additions & 0 deletions jsk_naoqi_robot/naoqieus/naoqi-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -406,5 +406,31 @@
(send res :success)
)
)
(:fade-leds
(led_name r g b sec)
(let* ((fade_rgb_msg (instance naoqi_bridge_msgs::FadeRGB :init))
(ret (instance naoqi_bridge_msgs::FadeLedsRequest :init))
(duration_msg (send fade_rgb_msg :fade_duration))
res)
(ros::wait-for-service "/naoqi_driver/fade_leds")
(send fade_rgb_msg :led_name led_name)
(send fade_rgb_msg :color :r r)
(send fade_rgb_msg :color :g g)
(send fade_rgb_msg :color :b b)
(send duration_msg :sec sec)
(send fade_rgb_msg :fade_duration duration_msg)
(send ret :fade_rgb fade_rgb_msg)
(setq res (ros::service-call "/naoqi_driver/fade_leds" ret))
)
)
(:reset-leds
(led_name)
(let ((ret (instance naoqi_bridge_msgs::SetStringRequest :init))
res)
(send ret :data led_name)
(setq res (ros::service-call "/naoqi_driver/reset_leds" ret))
(send res :success)
)
)
)
;;