Simple Usage » History » Revision 2
« Previous |
Revision 2/4
(diff)
| Next »
Jules Waldhart, 2018-03-14 16:24
Simple Usage¶
move4d main interface is through python bindings, also a GUI provide some functionalities, but currently we do not aim at making it a complete interface. Python binding are aimed at accessing all functionalities of move4d -- but that's a work in progress.
Install everything¶
Download some p3d files¶
You can find a lot here: git://redmine.laas.fr/laas/move3d/assets.git
Launch GUI from python console¶
start a python 3 console (we recommend using ipython3) and if your environment is properly set you should be able to do:
import move4dogre
from move4d import move4d
m4dapp=move4dogre.Move4d(["-f","path/to/a/p3d_file.p3d"]) # try with "path/to/assets/ADREAM/ADREAM_APPART.p3d"
m4dapp.start()
# this starts the GUI in another thread, you can still provide commands to the python prompt
Moving the camera¶
In the GUI, there is a 3D view of your environment (or several views).
To change the viewpoint, hold left mouse button and move the mouse around. This will rotate the camera around a virtual point.
You can zoom in and out with the mouse middle button (scroll) (or rather move the camera forward/backward); actual zooming is performed by holding CTRL while scrolling.
You can move the camera virtual target by holding the middle-button down while moving the mouse. The camera target is materialized by a white ball (in the center of the view, may be hidden by other objects).
Moving the robots around¶
To move a robot in the environment, you can either right-click on it in the robot you want to move and click "move robot". You can now use the keyboard arrows to move it in X/Y directions, and page-up/page-down to move it in Z.
Or you can use the widget "Robot Form" widget and use the sliders to act on each degree of freedom. There you can save configurations by clicking "Save Curr." button, or "Save (as init)", "Save (as goal)". The init and goal configurations are used for motion planning requests.
Updated by Jules Waldhart over 6 years ago · 4 revisions