Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The vehicle will drive in a basic circle with a radius of 1m. The center of the circle will be in the center of the map, but the circle will not be connected to the map.

Initialisation

Define the ID of the vehicle you want to drive (In the case of the example it is ID "4").

Initialize a DDS Writer for the RTI DDS Service to ensure that position and speed will be sent to the simulation and the vehicle.

...

All data are sent to the vehicle using the writer-function from the beginning.

Run the example
  1. Compile your code.
  2. Upload it in the LCC.
  3. Select vehicle 4 (simulated mode).
  4. Hit "Deploy". You will see a trail which builds and erases from point to point. This is your trajectory. Now move the simulated vehicle close to the trajectory by dragging it to a close point to the circle trajectory. A second trail will be drawn which is the trajectory for your vehicle to get the circle trajectory.
  5. Once the vehicle is on the circle trajectory it will drive continously in endless loop.
  6. To end the program hit "Kill".

Matlab specific information

...