RobotName: Name of the rover.
RockListFileName: A file that contains data with rocks that have utility and material properties.
DistanceThreshold: Distance between rock and rover in meters.
AngularThreshold: Angle between the forward direction of the rover and the line from the rover to the rock.
DetectorPhysicalName: The name of the physical of the detector, e.g. K9:GPS_Mount:Physical
(the detector uses its location).
The BlueRockDetector subscribes to the following object classes and interactions:
In order for the BlueRockDetector federate to run successfully in a simulation, it has to discover the following object instances:
where robotName is the name entered at the command line.
or
if K9_DETECTOR_PHYSICAL is a defined environmental variable.
A federate that wants to use the BlueRockDetector must discover the following object instances:
where robotName is the name entered at the command line.
COMPILATION FLAGS
MSF_USE_SIMSCAPE: If this environment variable is defined during compilation, the SpecialtyRockDetector will get the rocklist from SimScpe.
MSF/components/BlueRockDetector K9 RockList_Test1.xml 3.0 150 MSF/components/test_BlueRockDetector K9 MSF/components/manager/SimManager 3The test program creates a PhysicalInstance and a shell for discovering a SpecialtyRockDetector instance published by the BlueRockDetector. The test program sets the location of the Physical instance at <-4.0, 0.0, 0.0> and moves it along the X-axis in 0.5 m increments. The output includes the location of the PhysicalInstance and the data of a rock if it is detected.
SpecialtyRockDetector.cpp // Details of the rock detector BlueRockDetector.cpp // main program testBlueRockDetector.cpp // test program RockList.txt // rock list for testing BlueRockDetector.dox // component documentation in doxygen format.
1.4.1