HiroNXProvider and HiroNXGUI
It is possible to transmit grasp planning from Choreonoid and to “Start/Stop” HIRO from the HiroNXGUI by running the HiroNXProvider function on HIRO.
HIRO operates by sending the grasp planning generated by Choreonoid to the HiroNXProvider.
% cd ~/src/Choreonoid % bin/choreonoid extplugin/graspPlugin/GripperManipulation/project/worldexpo.cnoid
% rtls localhost/dinobot.host_cxt/ HIROController0.rtc GripperManipulation0.rtc GraspConsumer0.rtc
The HiroNXProvider is an RT component that provides the API for SETUP, CALIBRATION, SERVO ON/OFF, and SHUTDOWN. In addition, it provides the API for directly manipulating the angle of each joint.
% cd ~/asahi/HiroNXProvider % ./HiroNXProvider.py
HiroNXGUI is a tool that uses the API provided by the HiroNXProvider to operate HIRO via the GUI. In addition, HIRO can be operated by directly specifying the angle of each joint.
% cd ~/asahi/HiroNXGUI % ./WxHiroNXGUI.py
There are two service ports, known as the HiroNX port and the HIRO Port, between the three RTCs — HIROController0.rtc, HiroNXProvider0.rtc, and HiroNXGUI0.rtc
HIROController0.rtc <-> HiroNXProvider0.rtc
HiroNXGUI0.rtc <-> HiroNXProvider0.rtc
The HiroNX ports and HIRO ports are connected in this combination and activated.
The operation of HiroNXGUI is similar to that of gui.py (Refer to the HiroNX operating procedures).
On activation, the RTC Status field turns green.
Open hand — closed fist operations can be achieved by using the “Open Hand” and “Close Hand” buttons, respectively.
In the “Joint-operation tab,” it is possible to set the angle of each of the servo motors present in the left and right hands, arms, and the body, by means of a textbox. The posture of HIRO changes with a click of the “GO” button after completing the angle setup of all the servo motors. The angles of all the servo motors are reset to their initial posture values on clicking the “Reset” Button.
Japanese | English |
胴体 | Body |
首ヨー | Head Yaw |
首ピッチ | Head Pitch |
左肩ヨー | Left Shoulder Yaw |
右肩ヨー | Right Shoulder Yaw |
左肩ピッチ | Left Shoulder Pitch |
右肩ピッチ | Right Shoulder Pitch |
左肘ピッチ | Left Elbow Pitch |
右肘ピッチ | Right Elbow Pitch |
左手首ヨー | Left Elbow Yaw |
右手首ヨー | Right Elbow Yaw |
左手首ピッチ | Left Wrist Pitch |
右手首ピッチ | Right Wrist Pitch |
左手首ロール | Left Wrist Roll |
右手首ロール | Right Wrist Roll |
左ハンド | Left Hand |
右ハンド | Right Hand |
After specifying a palette by holding Ctrl and left-clicking, choose the “Grasp” option of the “=Planner=Toolbar" to create grasp planning. The HIRO posture transition will be created on clicking the “Start” option of the “PathPlan=Toolbar.” More data are transmitted to HIRO after confirming through the use of animation that there is no problem with the HIRO posture. Please press the “Move” button on the “=Interface=Toolbar.”