Directions for opening the model file with Choreonoid to arrange the Scene screen are provided below.
Inputting
% ~/workspace/Choreonoid/bin/choreonoid
Among the five levels of toolbars available, primarily the Scene View bar of the second level, the Kinematics bar of the third level, the Planner bar of the fourth level, and the Items tab on the left pane are used in this text to manipulate the model displayed on the Scene tab on the right side of the screen. (The functions carried out by the respective buttons will be described later.)
Various messages are also displayed on the Message tab in the lower section of the Planner bar screen. Refer to Choreonoid Help for details about the toolbar.
Models used by graspPlugin are opened from the File menu using Open–OpenHRP model file.
Once the model is opened, a checkbox and the model name are displayed in the Items tab. A 3D model is displayed at the origin on the Scene screen when the
checkbox is turned on.
Model files are arranged under extplugin/graspPlugin/Grasp.
Loading OpenHRP model file "/home/asa/workspace/Choreonoid/extplugin/graspPlugin/Grasp/Object/ahiru.wrl" Humanoid node is not found -> failed.
Furthermore, when a new model is opened while item A is still selected, the new model is added to item A as subordinate item B. Click on the triangular mark in front of the file name of item A to open and close the subordinate model list.
As described earlier, turning on the checkbox in the Items tab will display a 3D model on the Scene screen. Models that have just been loaded are all arranged at the origin. Smaller models may be buried underneath the larger models and so may not be readily visible.
For example, in this diagram a duck is buried under the base of PA10. In such cases, first click the Edit button in the Scene View bar and switch to the Edit mode.
Red cubes appear around the model in the Edit mode. When the cursor of the mouse is placed on a model in this mode, the contour of the model is surrounded by a red line.
Once the presence of a previously invisible model is verified by changing the perspective or by zooming in the Scene screen, use the left button to drag and relocate it.
Press the View button in the Scene View bar to enter the View mode.
The Scene screen is initially in the View mode. Place the cursor of the mouse on the Scene screen, rotate a grid with the origin at the center using the left drag, and change perspective by moving it in a parallel direction using the center drag. The wheel can also be used to zoom in and out of the central point of the screen.
When the origin becomes lost, press the return to home view button of the Scene View bar to revert to the original conditions.
Models can be moved by using the Edit button on the Scene View bar to switch to the Edit mode.
Red dots are displayed around models in the Edit mode.
In addition, placing the cursor of the mouse on a model will surround it with a red line and cause it to be selected (an operation with no model selected is the same as an operation in the View mode). Operation changes according to the Kinematics mode in the Menu bar.
Switching to the IK mode and then left-dragging the model will relocate the position (drag the base in order to relocate the hand robot PA10). The movement axis of the model changes depending on the aspect, so please combine correctly the rotation and the aspect movement of the grid in order to move the model to your preferred location.
Turn on Enable Attitude Edit in the IK mode and click on the model to adjust the orientation of the model. The model becomes surrounded by rings in three colors of red, blue and green. Drag these rings with the left drag and the orientation of the model changes accordingly.
Red represents the roll (rolling), blue represents the yaw (yawing) and green represents the pitch (pitching).
Press View in the Scene View bar or select View mode in the right click menu of the Scene screen to revert to the View mode.
The conditions of the hand robot arranged on the Scene screen, as well as the model, can all be summarized and saved in a project file (with extension ".cnoid"). Select Save Project As in the File menu to display the File dialog and save the project with any name and in any directory. Similarly, a project file can be selected from Open Project in the same File menu to return the project back to the condition it was when the file was saved. Click on O.P. in the File bar to overwrite the project file instantly with the current conditions.