-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_incomplete.cpp
35 lines (24 loc) · 1 KB
/
main_incomplete.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// a start on a test file for developing your occupancy maps
#include "OccupancyMapHash.h"
#include <iostream>
//-----------------------------------------------------------------------------
int main()
{
// Test basic functionality, development purposes only; remove before shipping
{
COccupancyMapHash myOccupancyMap;
std::pair<int,int> TestLocation = std::make_pair(3, 4);
myOccupancyMap.AddOccupiedLocation( TestLocation );
std::cout << "Location: " << TestLocation.first << " " << TestLocation.second << " returns ";
std::cout << myOccupancyMap.CheckIsOccupied( TestLocation ) << std::endl;
TestLocation.first = 0;
std::cout << "Location: " << TestLocation.first << " " << TestLocation.second << " returns ";
std::cout << myOccupancyMap.CheckIsOccupied( TestLocation ) << std::endl;
}
{
// More comprehensive test
COccupancyMapHash myMap;
myMap.EvalPerformance( "ExampleObservations_Small.txt", "ExampleNotObserved_Small.txt" );
}
return 0;
}