3 Replies Latest reply on Jul 21, 2017 12:34 PM by ts950

    Start scenario from command line?

    sbierwagen

      The official documented method to bringup nodes seems to be to click a button in the browser interface, which is a little clunky.

       

      There's a bunch of .p files with the +x bit set in /intel/euclid/config/scenarios/ with suggestive names, but running ./foo just throws a bunch of syntax errors.

       

      How do you programmatically launch nodes on the Euclid?

        • 1. Re: Start scenario from command line?
          MajdSr

          You can use ros for that

          rosservice call /euclid/get_scenarios.

          This gives you all the scenarios in the system

          Theh you can use

          /euclid/run_scenario <double tab>. With the scenario name to run it.

           

          Best

          Majd

          • 2. Re: Start scenario from command line?
            sbierwagen

            Thank you, that was helpful.

             

            However, tab completion seems to be broken: rosservice call /euclid/run_scenario Cam[TAB] results in it printing rosservice call /euclid/run_scenario "scenarioName: ''"

             

            In practice, I do this to start and stop scenarios:

             

            rosservice call /euclid/run_scenario Cameras

            rosservice call /euclid/stop_running_scenario

             

            To list all rosservice calls you run the following command. (This is what I had to do to figure out how to stop a scenario after starting it)

             

            rosservice list

            • 3. Re: Start scenario from command line?
              ts950

              Thanks for the answer. It is really helpful. I would like to run the command automatically after boot. Can you please tell me how to do it?