#include <mutex>
#include <string>
#include <strings.h>
#include <ram_msgs/AdditiveManufacturingTrajectory.h>
#include <ram_trajectory_buffer/BufferParams.h>
#include <ram_trajectory_buffer/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>
Go to the source code of this file.
Functions | |
bool | getUnmodifiedTrajectoryCallback (ram_trajectory_buffer::UnmodifiedTrajectory::Request &req, ram_trajectory_buffer::UnmodifiedTrajectory::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_trajectory_buffer::BufferParams::Request &req, ram_trajectory_buffer::BufferParams::Response &res) |
Variables | |
rosbag::Bag | bag |
unsigned | last_msg_published = 0 |
std::vector< ram_msgs::AdditiveManufacturingTrajectory > | msgs |
std::mutex | msgs_mutex |
ros::Publisher | pub |
std::vector< ram_msgs::AdditiveManufacturingTrajectory > | unmodified_msgs |
std::mutex | unmodified_msgs_mutex |
bool getUnmodifiedTrajectoryCallback | ( | ram_trajectory_buffer::UnmodifiedTrajectory::Request & | req, |
ram_trajectory_buffer::UnmodifiedTrajectory::Response & | res | ||
) |
Definition at line 126 of file trajectory_buffer.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 142 of file trajectory_buffer.cpp.
const unsigned msg_to_keep | ( | 10 | ) |
void mySigintHandler | ( | int | ) |
Definition at line 28 of file trajectory_buffer.cpp.
void saveTrajectoryCallback | ( | const ros::MessageEvent< ram_msgs::AdditiveManufacturingTrajectory > & | msg_event | ) |
Definition at line 54 of file trajectory_buffer.cpp.
bool trajectoryBufferCallback | ( | ram_trajectory_buffer::BufferParams::Request & | req, |
ram_trajectory_buffer::BufferParams::Response & | res | ||
) |
Definition at line 85 of file trajectory_buffer.cpp.
rosbag::Bag bag |
Definition at line 16 of file trajectory_buffer.cpp.
unsigned last_msg_published = 0 |
Definition at line 18 of file trajectory_buffer.cpp.
std::vector<ram_msgs::AdditiveManufacturingTrajectory> msgs |
Definition at line 22 of file trajectory_buffer.cpp.
std::mutex msgs_mutex |
Definition at line 21 of file trajectory_buffer.cpp.
ros::Publisher pub |
Definition at line 19 of file trajectory_buffer.cpp.
std::vector<ram_msgs::AdditiveManufacturingTrajectory> unmodified_msgs |
Definition at line 25 of file trajectory_buffer.cpp.
std::mutex unmodified_msgs_mutex |
Definition at line 24 of file trajectory_buffer.cpp.