dynamic_graph_manager
|
#include <stdexcept>
#include "dg_to_ros.hh"
#include <ros/time.h>
#include <std_msgs/Header.h>
#include <boost/date_time/date.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/static_assert.hpp>
Go to the source code of this file.
Namespaces | |
dynamic_graph | |
this is this package namespace in order to avoid naming conflict | |
Macros | |
#define | DG_TO_ROS_IMPL(T) |
#define | ROS_TO_DG_IMPL(T) |
#define | DG_BRIDGE_TO_ROS_MAKE_STAMPED_IMPL(T, ATTRIBUTE, EXTRA) |
This macro generates a converter for a stamped type from dynamic-graph to ROS. More... | |
#define | DG_BRIDGE_MAKE_SHPTR_IMPL(T) |
This macro generates a converter for a shared pointer on a ROS type to a dynamic-graph type. More... | |
#define | DG_BRIDGE_MAKE_STAMPED_IMPL(T, ATTRIBUTE, EXTRA) |
This macro generates a converter for a stamped type. More... | |
#define | DG_BRIDGE_MAKE_STAMPED_SHPTR_IMPL(T, ATTRIBUTE, EXTRA) |
This macro generates a converter for a shared pointer on a stamped type. More... | |
Functions | |
void | dynamic_graph::makeHeader (std_msgs::Header &header) |
template<typename D , typename S > | |
void | dynamic_graph::converter (D &dst, const S &src) |
Handle ROS <-> dynamic-graph conversion. More... | |
dynamic_graph::DG_TO_ROS_IMPL (double) | |
dynamic_graph::ROS_TO_DG_IMPL (double) | |
dynamic_graph::DG_TO_ROS_IMPL (unsigned int) | |
dynamic_graph::ROS_TO_DG_IMPL (unsigned int) | |
dynamic_graph::DG_TO_ROS_IMPL (Vector) | |
dynamic_graph::ROS_TO_DG_IMPL (Vector) | |
dynamic_graph::DG_TO_ROS_IMPL (specific::Vector3) | |
dynamic_graph::ROS_TO_DG_IMPL (specific::Vector3) | |
dynamic_graph::DG_TO_ROS_IMPL (Matrix) | |
dynamic_graph::ROS_TO_DG_IMPL (Matrix) | |
dynamic_graph::DG_TO_ROS_IMPL (MatrixHomogeneous) | |
dynamic_graph::ROS_TO_DG_IMPL (MatrixHomogeneous) | |
dynamic_graph::DG_TO_ROS_IMPL (specific::Twist) | |
dynamic_graph::ROS_TO_DG_IMPL (specific::Twist) | |
dynamic_graph::DG_BRIDGE_TO_ROS_MAKE_STAMPED_IMPL (specific::Vector3, vector, ;) | |
dynamic_graph::DG_BRIDGE_TO_ROS_MAKE_STAMPED_IMPL (MatrixHomogeneous, transform, dst.child_frame_id="";) | |
dynamic_graph::DG_BRIDGE_TO_ROS_MAKE_STAMPED_IMPL (specific::Twist, twist, ;) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (double) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (unsigned int) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (Vector) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (specific::Vector3) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (Matrix) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (MatrixHomogeneous) | |
dynamic_graph::DG_BRIDGE_MAKE_SHPTR_IMPL (specific::Twist) | |
dynamic_graph::DG_BRIDGE_MAKE_STAMPED_IMPL (specific::Vector3, vector, ;) | |
dynamic_graph::DG_BRIDGE_MAKE_STAMPED_IMPL (MatrixHomogeneous, transform, ;) | |
dynamic_graph::DG_BRIDGE_MAKE_STAMPED_IMPL (specific::Twist, twist, ;) | |
dynamic_graph::DG_BRIDGE_MAKE_STAMPED_SHPTR_IMPL (specific::Vector3, vector, ;) | |
dynamic_graph::DG_BRIDGE_MAKE_STAMPED_SHPTR_IMPL (MatrixHomogeneous, transform, ;) | |
dynamic_graph::DG_BRIDGE_MAKE_STAMPED_SHPTR_IMPL (specific::Twist, twist, ;) | |
template<typename U , typename V > | |
void | dynamic_graph::converter (U &dst, V &src) |
If an impossible/unimplemented conversion is required, fail. More... | |
boost::posix_time::ptime | dynamic_graph::rosTimeToPtime (const ros::Time &rosTime) |
ros::Time | dynamic_graph::pTimeToRostime (const boost::posix_time::ptime &time) |
#define DG_BRIDGE_MAKE_SHPTR_IMPL | ( | T | ) |
This macro generates a converter for a shared pointer on a ROS type to a dynamic-graph type.
A converter for the underlying type is required. I.e. to convert a shared_ptr<T> to T', a converter from T to T' is required.
#define DG_BRIDGE_MAKE_STAMPED_IMPL | ( | T, | |
ATTRIBUTE, | |||
EXTRA | |||
) |
This macro generates a converter for a stamped type.
I.e. A data associated with its timestamp.
FIXME: the timestamp is not yet forwarded to the dg signal.
#define DG_BRIDGE_MAKE_STAMPED_SHPTR_IMPL | ( | T, | |
ATTRIBUTE, | |||
EXTRA | |||
) |
This macro generates a converter for a shared pointer on a stamped type.
I.e. A data associated with its timestamp.
FIXME: the timestamp is not yet forwarded to the dg signal.
#define DG_BRIDGE_TO_ROS_MAKE_STAMPED_IMPL | ( | T, | |
ATTRIBUTE, | |||
EXTRA | |||
) |
This macro generates a converter for a stamped type from dynamic-graph to ROS.
I.e. A data associated with its timestamp.
#define DG_TO_ROS_IMPL | ( | T | ) |
#define ROS_TO_DG_IMPL | ( | T | ) |