Classes | Macros | Functions | Variables
mission_planning_client.cpp File Reference
#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>
Include dependency graph for mission_planning_client.cpp:

Go to the source code of this file.

Classes

class  GpsTest
 

Macros

#define d2r   (M_PI / 180.0)
 

Functions

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)
 

Variables

PGconn * conn = PQconnectdb("user=atlas password=atlascar dbname=atlas_navigation hostaddr=127.0.0.1 port=5432")
 

Macro Definition Documentation

#define d2r   (M_PI / 180.0)

Definition at line 47 of file mission_planning_client.cpp.

Function Documentation

void CloseConn ( PGconn *  conn)

Definition at line 74 of file mission_planning_client.cpp.

PGconn* ConnectDB ( )

Definition at line 87 of file mission_planning_client.cpp.

void DBConnectionCheck ( PGconn *  conn)

Definition at line 107 of file mission_planning_client.cpp.

std::vector<std::string> FetchEmployeeRec ( PGconn *  conn)

Definition at line 368 of file mission_planning_client.cpp.

double haversine_km ( double  lat1,
double  lon1,
double  lat2,
double  lon2 
)

Definition at line 413 of file mission_planning_client.cpp.

void InsertClosestWaypointRec ( PGconn *  conn,
int  closestwaypoint 
)

Definition at line 241 of file mission_planning_client.cpp.

void InsertEmployeeRec ( PGconn *  conn,
double  fname 
)

Definition at line 123 of file mission_planning_client.cpp.

void InsertGpsCoordRec ( PGconn *  conn,
const sensor_msgs::NavSatFixPtr &  gps 
)

Definition at line 176 of file mission_planning_client.cpp.

void InsertNextInstructionRec ( PGconn *  conn,
const mission_planning::Path::Response &  resp,
int  nextinstruction 
)

Definition at line 271 of file mission_planning_client.cpp.

void InsertWaypointsRec ( PGconn *  conn,
const mission_planning::Path::Response &  resp 
)

Definition at line 205 of file mission_planning_client.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 841 of file mission_planning_client.cpp.

double nextInst ( const sensor_msgs::NavSatFixPtr &  gps,
const mission_planning::Path::Response &  resp 
)

Definition at line 481 of file mission_planning_client.cpp.

void RemoveAllEmployeeRec ( PGconn *  conn)

Definition at line 149 of file mission_planning_client.cpp.

void RemoveAllTablesRec ( PGconn *  conn)

Definition at line 297 of file mission_planning_client.cpp.

double shortestDistance ( const sensor_msgs::NavSatFixPtr &  gps,
const mission_planning::Path::Response &  resp 
)

Definition at line 434 of file mission_planning_client.cpp.

std::pair<double,double> wrongDirection ( const sensor_msgs::NavSatFixPtr &  gps,
const mission_planning::Path::Response &  resp,
int  minimumIndex 
)

Definition at line 553 of file mission_planning_client.cpp.

Variable Documentation

PGconn* conn = PQconnectdb("user=atlas password=atlascar dbname=atlas_navigation hostaddr=127.0.0.1 port=5432")

Definition at line 64 of file mission_planning_client.cpp.



mission_planning
Author(s): ivan
autogenerated on Thu Nov 12 2015 19:08:20