StarlingUAS / ProjectStarling

BRL Flight Arena Infrastructure 2.0
Other
16 stars 3 forks source link

Target spawning for group project scenario #99

Closed arthurrichards77 closed 2 years ago

arthurrichards77 commented 2 years ago

Please create a utility to spawn the "target" and "hotspot" markers in the group project Fenswood simulation according to the specification described in the attached draft briefing document.

Can use the target spawning script from the FARSCOPE group project as an example. While that case used a custom mesh, I'd be happy for the targets in this case to be simple built-in primitives, e.g. cylinders or boxes. This should simplify containerization.

You can find the FARSCOPE target model in URDF form here. Note in that project, the launch file loaded the URDF into a parameter and then the spawning script read the parameter and streamed it as text into Gazebo's spawn service.

Happy for spawning to take a simpler approach than the full complexity talked about in the briefing document. You could just use cylinders to fill in a segment of the crater annulus region, and then fill one end of that with a red cylinder as a single hotspot. Keep it simple to avoid the chance of a difficult or even impossible scenario, where the yellow target was totally filled with red hotspots.

mhl787156 commented 2 years ago

Spawning has to be done by either ros2cli or ros2 node which means that the ros.env.d approach is not going to work if it requires building as well. Suggested methods:

@rob-clarke any thoughts on which one? I'd like to keep the ros.env.d in fenswood because it is rather elegant. However it can be sort of limiting here!

mhl787156 commented 2 years ago

It just occured to me that I could spawn the model just like how the drone model is spawned. Localisation and stuff can be randomised by the setup.sh script. I think this is the simplest and most straightforward method for spawning.

mhl787156 commented 2 years ago

This has been solved by https://github.com/StarlingUAS/FenswoodScenario/pull/8