Functions | Variables
trajectory_utils.cpp File Reference
#include <mutex>
#include <string>
#include <strings.h>
#include <ram_msgs/AdditiveManufacturingTrajectory.h>
#include <ram_utils/BufferParams.h>
#include <ram_utils/ExportTrajectory.h>
#include <ram_utils/ImportTrajectory.h>
#include <ram_utils/UnmodifiedTrajectory.h>
#include <ros/ros.h>
#include <rosbag/bag.h>
#include <rosbag/buffer.h>
#include <rosbag/exceptions.h>
#include <rosbag/structures.h>
#include <rosbag/view.h>
#include <signal.h>
Include dependency graph for trajectory_utils.cpp:

Go to the source code of this file.

Functions

bool exportTrajectoryCallback (ram_utils::ExportTrajectory::Request &req, ram_utils::ExportTrajectory::Response &res)
 
std::string fileExtension (const std::string full_path)
 
bool getUnmodifiedTrajectoryCallback (ram_utils::UnmodifiedTrajectory::Request &req, ram_utils::UnmodifiedTrajectory::Response &res)
 
bool importTrajectoryCallback (ram_utils::ImportTrajectory::Request &req, ram_utils::ImportTrajectory::Response &res)
 
int main (int argc, char **argv)
 
const unsigned msg_to_keep (10)
 
void mySigintHandler (int)
 
void saveTrajectoryCallback (const ros::MessageEvent< ram_msgs::AdditiveManufacturingTrajectory > &msg_event)
 
bool trajectoryBufferCallback (ram_utils::BufferParams::Request &req, ram_utils::BufferParams::Response &res)
 

Variables

rosbag::Bag buffer_bag
 
unsigned last_msg_published = 0
 
std::mutex msgs_mutex
 
ros::Publisher pub
 
std::vector< ram_msgs::AdditiveManufacturingTrajectory > traj_msgs
 
std::mutex unmodified_msgs_mutex
 
std::vector< ram_msgs::AdditiveManufacturingTrajectory > unmodified_traj_msgs
 

Function Documentation

bool exportTrajectoryCallback ( ram_utils::ExportTrajectory::Request &  req,
ram_utils::ExportTrajectory::Response &  res 
)

Definition at line 160 of file trajectory_utils.cpp.

std::string fileExtension ( const std::string  full_path)

Definition at line 145 of file trajectory_utils.cpp.

bool getUnmodifiedTrajectoryCallback ( ram_utils::UnmodifiedTrajectory::Request &  req,
ram_utils::UnmodifiedTrajectory::Response &  res 
)

Definition at line 129 of file trajectory_utils.cpp.

bool importTrajectoryCallback ( ram_utils::ImportTrajectory::Request &  req,
ram_utils::ImportTrajectory::Response &  res 
)

Definition at line 236 of file trajectory_utils.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 312 of file trajectory_utils.cpp.

const unsigned msg_to_keep ( 10  )
void mySigintHandler ( int  )

Definition at line 31 of file trajectory_utils.cpp.

void saveTrajectoryCallback ( const ros::MessageEvent< ram_msgs::AdditiveManufacturingTrajectory > &  msg_event)

Definition at line 57 of file trajectory_utils.cpp.

bool trajectoryBufferCallback ( ram_utils::BufferParams::Request &  req,
ram_utils::BufferParams::Response &  res 
)

Definition at line 88 of file trajectory_utils.cpp.

Variable Documentation

rosbag::Bag buffer_bag

Definition at line 18 of file trajectory_utils.cpp.

unsigned last_msg_published = 0

Definition at line 21 of file trajectory_utils.cpp.

std::mutex msgs_mutex

Definition at line 24 of file trajectory_utils.cpp.

Definition at line 22 of file trajectory_utils.cpp.

std::vector<ram_msgs::AdditiveManufacturingTrajectory> traj_msgs

Definition at line 25 of file trajectory_utils.cpp.

std::mutex unmodified_msgs_mutex

Definition at line 27 of file trajectory_utils.cpp.

std::vector<ram_msgs::AdditiveManufacturingTrajectory> unmodified_traj_msgs

Definition at line 28 of file trajectory_utils.cpp.



ram_utils
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 14:49:54