ALMotion 관절의 움직임 메모
소개
확인 방법
Python에서 Choregraphe의 가상 로봇에 연결하여 관절을 움직입니다.
$ /usr/bin/python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from naoqi import ALProxy
>>> m = ALProxy("ALMotion", "localhost", 50445)
[I] 3343 qi.eventloop: Creating event loop while no qi::Application() is running
[I] 3343 qimessaging.session: Session listener created on tcp://0.0.0.0:0
[I] 3343 qimessaging.transportserver: TransportServer will listen on: tcp://172.20.10.4:50452
[I] 3343 qimessaging.transportserver: TransportServer will listen on: tcp://172.20.10.3:50452
[I] 3343 qimessaging.transportserver: TransportServer will listen on: tcp://127.0.0.1:50452
이 상태에서 확인할 관절 명령을 입력합니다.
확인
머리
>>> m.setAngles(["HeadYaw", "HeadPitch"], [0.0, 0.0], 0.1)
HeadYaw



-1.0
0.0
1.0
HeadPitch



-1.0
0.0
1.0
어깨
>>> m.setAngles(["LShoulderPitch", "LShoulderRoll"], [0.0, 0.0], 0.1)
LShoulderPitch



-1.0
0.0
1.0
LShoulderRoll



-1.0
0.0
1.0
팔꿈치
>>> m.setAngles(["LElbowYaw", "LElbowRoll"], [0.0, 0.0], 0.1)
LElbowYaw



-1.0
0.0
1.0
LElbowRoll



-1.0
0.0
1.0
손목
>>> m.setAngles("LWristYaw", 0.0, 0.1)
LWristYaw



-1.0
0.0
1.0
허리
>>> m.setAngles(["HipPitch", "HipRoll"], [0.0, 0.0], 0.1)
HipPitch




-1.0
0.0
1.0
HipRoll



-1.0
0.0
1.0
감상
Reference
이 문제에 관하여(ALMotion 관절의 움직임 메모), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/Suna/items/9ab7f805c2a2d2b1efef텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)