Versions Compared

Key

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

...

  1.  Write your code in C++ or Matlab
  2.  Compile it
  3. Upload it to the LCC (see here)
  4. Press "employ"

Source Code explanation:


You define the position of the target points, the speed of your vehicle for each section and the time the vehicle needs to pass a segment. In this example the target points are not connected to the map.

Source Code explanation:

This vector defines the x position of a target point (unitless):

...

vector<uint64_t> segment_duration = vector<uint64_t>{1550000000ull, 1550000000ull, 1550000000ull, 1550000000ull}

In this verctor vector we see the time for 1 m/sec and a way length of pi/2 (a quater circle ;))

C++

Circular trajectory generation for one vehicle

...