#include <iostream>
#include <ros/ros.h>
#include <sensor_msgs/NavSatFix.h>
#include <mission_planning/Path.h>
#include <vector>
#include <math.h>
#include <postgresql/libpq-fe.h>
#include <string>
#include <utility>
Go to the source code of this file.
|
| #define | d2r (M_PI / 180.0) |
| |
|
| void | CloseConn (PGconn *conn) |
| |
| PGconn * | ConnectDB () |
| |
| void | DBConnectionCheck (PGconn *conn) |
| |
| std::vector< std::string > | FetchEmployeeRec (PGconn *conn) |
| |
| double | haversine_km (double lat1, double lon1, double lat2, double lon2) |
| |
| void | InsertClosestWaypointRec (PGconn *conn, int closestwaypoint) |
| |
| void | InsertEmployeeRec (PGconn *conn, double fname) |
| |
| void | InsertGpsCoordRec (PGconn *conn, const sensor_msgs::NavSatFixPtr &gps) |
| |
| void | InsertNextInstructionRec (PGconn *conn, const mission_planning::Path::Response &resp, int nextinstruction) |
| |
| void | InsertWaypointsRec (PGconn *conn, const mission_planning::Path::Response &resp) |
| |
| int | main (int argc, char **argv) |
| |
| double | nextInst (const sensor_msgs::NavSatFixPtr &gps, const mission_planning::Path::Response &resp) |
| |
| void | RemoveAllEmployeeRec (PGconn *conn) |
| |
| void | RemoveAllTablesRec (PGconn *conn) |
| |
| double | shortestDistance (const sensor_msgs::NavSatFixPtr &gps, const mission_planning::Path::Response &resp) |
| |
| std::pair< double, double > | wrongDirection (const sensor_msgs::NavSatFixPtr &gps, const mission_planning::Path::Response &resp, int minimumIndex) |
| |
|
| PGconn * | conn = PQconnectdb("user=atlas password=atlascar dbname=atlas_navigation hostaddr=127.0.0.1 port=5432") |
| |
| #define d2r (M_PI / 180.0) |
| void CloseConn |
( |
PGconn * |
conn | ) |
|
| void DBConnectionCheck |
( |
PGconn * |
conn | ) |
|
| std::vector<std::string> FetchEmployeeRec |
( |
PGconn * |
conn | ) |
|
| double haversine_km |
( |
double |
lat1, |
|
|
double |
lon1, |
|
|
double |
lat2, |
|
|
double |
lon2 |
|
) |
| |
| void InsertClosestWaypointRec |
( |
PGconn * |
conn, |
|
|
int |
closestwaypoint |
|
) |
| |
| void InsertEmployeeRec |
( |
PGconn * |
conn, |
|
|
double |
fname |
|
) |
| |
| void InsertGpsCoordRec |
( |
PGconn * |
conn, |
|
|
const sensor_msgs::NavSatFixPtr & |
gps |
|
) |
| |
| void InsertNextInstructionRec |
( |
PGconn * |
conn, |
|
|
const mission_planning::Path::Response & |
resp, |
|
|
int |
nextinstruction |
|
) |
| |
| void InsertWaypointsRec |
( |
PGconn * |
conn, |
|
|
const mission_planning::Path::Response & |
resp |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
| double nextInst |
( |
const sensor_msgs::NavSatFixPtr & |
gps, |
|
|
const mission_planning::Path::Response & |
resp |
|
) |
| |
| void RemoveAllEmployeeRec |
( |
PGconn * |
conn | ) |
|
| void RemoveAllTablesRec |
( |
PGconn * |
conn | ) |
|
| double shortestDistance |
( |
const sensor_msgs::NavSatFixPtr & |
gps, |
|
|
const mission_planning::Path::Response & |
resp |
|
) |
| |
| std::pair<double,double> wrongDirection |
( |
const sensor_msgs::NavSatFixPtr & |
gps, |
|
|
const mission_planning::Path::Response & |
resp, |
|
|
int |
minimumIndex |
|
) |
| |
| PGconn* conn = PQconnectdb("user=atlas password=atlascar dbname=atlas_navigation hostaddr=127.0.0.1 port=5432") |