Skip to content
Snippets Groups Projects
  1. Apr 22, 2017
  2. Apr 19, 2017
  3. Apr 18, 2017
  4. Apr 12, 2017
  5. Apr 10, 2017
  6. Apr 04, 2017
  7. Apr 03, 2017
  8. Mar 31, 2017
    • Emmanouil Angelidis's avatar
      [NRRPLT-4707] Create full custom Experiment · 3b7a1cef
      Emmanouil Angelidis authored
      - This commit completes the new experiment wizard with the functionality to request the models libraries from the backend, select models, and clone an empty experiment using the given brain, robot, environment
      
      - There is a new variable in the new-experiment-wizard directive which contains the paths to the models after the user has made his selection from the corresponding library.
      
      - The proxy returns the models list containing all the models inside the brains, environments, robots folders in $NRP_MODELS_DIRECTORY. The returned JSON by the proxy contains
        the description, the name, the thumbnail and the path to the model.
      
      - When the user selects the models, the clone button is activated and we make a PUT request to the backend REST
        server to clone an experiment, with an extra parameter in the body of the call which contains the three paths to the models.
      
      - The backend then during the clone request processing, opens the .exc and .bibi files of a new experiment (called EmptyTemplate) and changes on the fly the paths inside the configuration files
        to be the ones that we are sending from the frontend. The rest of the cloning process continues as before.
      
      - The resulting cloned experiment is launchable but nothing is happening when you click play (other than he robot usually being launched in the air due to the collision detection)
      
      - TO TEST:
      
        1. Git review all the submitted together changes in ExDFrontend, ExDBackend, Models, Experiments, nrpBackendProxy
        2. Do the steps to go to the list of experiments in collab mode, dev mode ( url should look like : http://localhost:9000/#/esv-private?ctx=<your-context-id>&dev
        3. Click on the new experiment wizard in the list of experiments
        4. Repeat for each model (robot, brain, environment)
               a. Click on the choose model button
               b. Click on the upload from the public libraries button (it is the only button which is enabled)
               c. Select your model and click OK
        5. After you have selected all models, the clone button is enabled, click it
        6. Wait patiently, get a coffee or go for a walk while the collab is taking ages to respond
        7. After approx. 2 mins your experiment is cloned with your selected models and is launchable
        8. Launch it. Wait again... Your experiment should be loaded with the selected models and you should be able to click play without errors.
        9. Keep in mind that depending on the combination of models clicking play could result in weird results, like the robot flying around due to the collision detection
      
      Change-Id: Ia98072bf50dc32799a8bd1f6ae32a1dbfa9a8670
      3b7a1cef
    • Dario Palermo's avatar