ground_landmarks.m 355 B

12345678910111213141516171819
  1. function [ values ] = ground_landmarks( nrPoints )
  2. %UNTITLED2 Summary of this function goes here
  3. % Detailed explanation goes here
  4. import gtsam.*;
  5. values = Values;
  6. x = -800+1600.*rand(nrPoints,1);
  7. y = -800+1600.*rand(nrPoints,1);
  8. z = 3 * rand(nrPoints,1);
  9. for i=1:nrPoints
  10. values.insert(symbol('l',i),gtsam.Point3(x(i),y(i),z(i)));
  11. end
  12. end