jsk-ros-pkg / jsk_robot

jsk-ros-pkg/jsk_robot
https://github.com/jsk-ros-pkg/jsk_robot
73 stars 97 forks source link

Pepper can't lift its right hand over its chest. #293

Open jiangjun0105 opened 9 years ago

jiangjun0105 commented 9 years ago

I want Pepper to lift its hand over its head, but it can only lift its right hand over its hip. The left hand is OK. Does it because the servo is too hot? But I didn't let it move its arm a lot.

k-okada commented 9 years ago

please paste your program here or gist https://gist.github.com/

◉ Kei Okada

On Fri, Apr 10, 2015 at 2:43 PM, Jiang Jun notifications@github.com wrote:

I want Pepper to lift its hand over its head, but it can only lift its right hand over its hip. The lift hand is OK. Does it because the servo is too hot? But I didn't let it move its arm a lot.

— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_robot/issues/293.

jiangjun0105 commented 9 years ago

I ran the follow command in pepper-interface.l

send *pepper* :angle-vector #f(2.0 -2.0 -5.0 85.0 10.0 -70.0 -20.0 -40.0 -30.0 -20.0 50.0 50.0 -50.0 0.0 0.0)

Maybe it is hard to understand only by code and numbers. Can I paste the screenshot of pepper's model here?

k-okada commented 9 years ago

Sure,

2015年4月10日金曜日、Jiang Junnotifications@github.comさんは書きました:

I ran the follow command in pepper-interface.l

send pepper :angle-vector #f(2.0 -2.0 -5.0 85.0 10.0 -70.0 -20.0 -40.0 -30.0 -20.0 50.0 50.0 -50.0 0.0 0.0)

Maybe it is hard to understand only by code and numbers. Can I paste the screenshot of pepper's model here?

— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_robot/issues/293#issuecomment-91538403 .

◉ Kei Okada

jiangjun0105 commented 9 years ago

Pepper couldn't do this. It only could lift its right hand up to the height of its waist. pepper_arm_error

jiangjun0105 commented 9 years ago

By the way, I think there are some problems with pepper model's right hand, which is completely same with its left hand. I think the right hand is supposed to be symmetrical with the left hand.

k-okada commented 9 years ago

Ok

So Can you send ri :angle-vector (send pepper :angle-vector) ? If yes, the move right arm slightly, may be tilt shoulder pitch angle for 10 degree and send to the robot again. If it works, then move arm and send again

◉ Kei Okada

2015/04/10 21:42、Jiang Jun notifications@github.com のメッセージ:

Pepper couldn't do this. It only could lift its right hand up to the height of its waist.

— Reply to this email directly or view it on GitHub.

kochigami commented 9 years ago

I think my problem relates to this issue, and could you tell me how to use :angle-vector-sequence method without program being stopped ?

If Pepper's program and her movement is stopped, do I also have to separate the program and reduce the number of angle vector sequences like this? before

(send *ri* :angle-vector-sequence (list "angle-vector-sequence1" "angle-vector-sequence2" "angle-vector-sequence3" ))

after

(send *ri* :angle-vector-sequence (list "angle-vector-sequence1"  "angle-vector-sequence2")) 
(send *ri* :angle-vector-sequence (list "angle-vector-sequence3")) 

Thank you!

k-okada commented 9 years ago

if you call (send send *ri* :wait-interpolation), then the program pauses until the motion finishes. if it does not works, please use (unix:sleep 10) to pause the program.

◉ Kei Okada

On Sat, Apr 11, 2015 at 2:17 PM, Kanae Kochigami notifications@github.com wrote:

Please tell me how to use :angle-vector-sequence method without program being stopped.

If Pepper's program and her movement is stopped, do I also have to separate the program and reduce the number of angle vector sequences like this? before

(send ri :angle-vector-sequence (list "angle-vector-sequence1" "angle-vector-sequence2" "angle-vector-sequence3" ))

after

(send ri :angle-vector-sequence (list "angle-vector-sequence1" "angle-vector-sequence2")) (send ri :angle-vector-sequence (list "angle-vector-sequence3"))

Thank you!

— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_robot/issues/293#issuecomment-91763913 .

k-okada commented 9 years ago

oh, are you saying when you call :angle-vector-sequence , then the program stops (the :anlge-vector-sequence method did not returns) until the motion of the robot stops?

◉ Kei Okada

On Sat, Apr 11, 2015 at 2:17 PM, Kanae Kochigami notifications@github.com wrote:

Please tell me how to use :angle-vector-sequence method without program being stopped.

If Pepper's program and her movement is stopped, do I also have to separate the program and reduce the number of angle vector sequences like this? before

(send ri :angle-vector-sequence (list "angle-vector-sequence1" "angle-vector-sequence2" "angle-vector-sequence3" ))

after

(send ri :angle-vector-sequence (list "angle-vector-sequence1" "angle-vector-sequence2")) (send ri :angle-vector-sequence (list "angle-vector-sequence3"))

Thank you!

— Reply to this email directly or view it on GitHub https://github.com/jsk-ros-pkg/jsk_robot/issues/293#issuecomment-91763913 .

kochigami commented 9 years ago

Sorry for my poor English. That is what I wanted to say. I wondered the program sometimes fails to execute next function because there are many angle vector sequences or it sometimes takes long time to return :angle-vector-sequence method.

(今、音声ファイル再生と:angle-vector-sequence を同時に使う関数を書いて、それを8個並べて使っているのですが、たまに次の関数の処理に行かず、処理が止まることがありました。 その時は、音声ファイル再生は終わり、ロボットの動きも止まっていて、次の関数の内容は何も実行されていません。 音声ファイル再生だけだと止まらないようなので、動く部分が原因なのだと思います。 角度列 (10~15個くらい) を書きすぎて、処理が止まるのでしょうか、それとも、:angle-vector-sequence はたまに返り値を返すのに時間がかかってしまうのでしょうか。日本語も分かりづらくすみません。)