.. _see_it_in_action: See It In Action ================ Opening the Model ----------------- *On Windows/macOS machine/partition:* #. Navigate to the ``~/tasck/tasck_core_models/`` directory. #. Double-click on the ``tasck_core_models.xme`` file. #. GME will open and display a pop-up 'Import to new project' window. Select 'Create project file' and click :guilabel:`Next >`. #. The 'Save As' window will open. Click :guilabel:`Save` to save ``tasck_core_models.mga`` inside the ``tasck_core_models`` folder. Viewing Library --------------- *On Windows/macOS machine/partition:* #. Within GME, to your right, there should be a 'GME Browser' window with a single ``RootFolder`` object inside. Click on the '+' to expand the root folder. #. Left-click on the ``+`` next to ``A_Behaviors`` to view the Behavior Components folder. #. Left-click on the ``+`` next to ``A_Parts`` to view the Physical Components folder. #. Left-click on the ``+`` next to ``B_SubSystems`` to view the SubSystems folder. #. Left-click on the ``+`` next to ``D_DesignSpaces`` to view the DesignSpaces folder. Generating Physical Artifacts from Model ---------------------------------------- *On Windows/macOS machine/partition:* #. Within GME, navigate to ``RootFolder>Testing>Examples``. #. Double left-click any of the Example URDF Generation Test Benches in the ``Examples`` directory. #. Left-click the CyPhy Master Interpreter button located on the top toolbar. .. image:: images/running-a-pet-model-1.png #. The 'CyPhy Master Interpreter' window will open. Make sure 'Post to META Job Manager' is checked and left-click :guilabel:`OK`. #. The 'CAD Options window' will open. Left-click :guilabel:`OK`. #. The 'Results Browser' window will open. The running TestBench will be listed under the 'Active Jobs' tab. Blue means the Master Interpreter is still running, red means the Master Interpreter failed, and green means that the Master Interpreter succeeded. #. Once the Test Bench finishes running, right-click the job and select 'Show in Explorer' to view the generated artifacts. Generating Physical+Behavioral Artifacts from Model --------------------------------------------------- *On Windows/macOS machine/partition:* #. Within GME, navigate to ``RootFolder>Testing>Examples>02_URDF_Launch_File_Generate>Daisy_Gaits>Daisy_Tripod_Gait_Para``. #. Left-click the CyPhy Master Interpreter button located on the top toolbar. .. image:: images/running-a-pet-model-1.png #. The 'CyPhy Master Interpreter' window will open. Make sure 'Post to META Job Manager' is checked and left-click :guilabel:`OK`. #. The 'CAD Options window' will open. Uncheck all the STEP Formats and then left-click :guilabel:`OK`. .. image:: images/master-interpreter-cad-options.png #. The 'Results Browser' window will open. The running TestBench will be listed under the 'Active Jobs' tab. Blue means the Master Interpreter is still running, red means the Master Interpreter failed, and green means that the Master Interpreter succeeded. #. Once the Daisy_Tripod_Gait_Para Test Bench finishes running, right-click the job and select 'Show in Explorer' to view the generated artifacts. .. image:: images/results-browser-show-in-explorer.png #. **Copy the two generated ROS packages over to your Ubuntu 16.04.3 LTS machine/partition** (daisy_tripod_gait_example_generated_launch... and daisy_tripod_gait_example_generated_urdf...). .. image:: images/generated-packages.png *On Ubuntu 16.04.3 LTS machine/partition:* #. Open a terminal window and run: .. code-block:: bash ~/tasck/catkin_ws/devel/setup.bash roslaunch daisy_tripod_gait_example_generated_launch-... run_robot_simulation.launch #. Hit 'play' button on bottom bar in Gazebo GUI when it appears - ROS time is slaved to Gazebo simulation time. #. One of the terminal windows will prompt you to enter keystrokes to control the Daisy robot (once it finishes standing up): W - forward X - reverse A - strafe left D - strafe right Q - rotate left E - rotate right S - stop