Items with no label
3335 Discussions

Start scenario from command line?

SBier
Beginner
1,344 Views

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?

0 Kudos
1 Solution
MSrou2
New Contributor I
229 Views

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 . With the scenario name to run it.

Best

Majd

View solution in original post

0 Kudos
3 Replies
MSrou2
New Contributor I
230 Views

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 . With the scenario name to run it.

Best

Majd

0 Kudos
SBier
Beginner
229 Views

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

0 Kudos
DXie1
Beginner
229 Views

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?

0 Kudos
Reply