A example code just to show all the onboar reference systems in the atlascar. More...
#include <boost/algorithm/string.hpp>
#include <string>
#include <ros/ros.h>
#include <sensor_msgs/JointState.h>
#include <tf/transform_broadcaster.h>
#include <visualization_msgs/Marker.h>
#include <visualization_msgs/MarkerArray.h>
#include <tf/transform_listener.h>
#include <pcl_ros/transforms.h>
#include <pcl/conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <interactive_markers/interactive_marker_server.h>
#include <interactive_markers/menu_handler.h>
#include <ros/package.h>
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include <libxml/xmlreader.h>
Go to the source code of this file.
Classes | |
struct | t_reference_frame |
Macros | |
#define | _atlascar_transforms_CPP_ |
#define | PFLN {printf("FILE %s LINE %d\n",__FILE__, __LINE__);} |
Functions | |
int | add_to_viz_markers_vec (std::vector< visualization_msgs::Marker > *marker_vec) |
int | get_i_from_name (std::vector< boost::shared_ptr< t_reference_frame > > *v_rf, std::string name) |
void | GetAttribute (xmlTextReaderPtr reader, const xmlChar *name, string &str) |
Get the value of an attribute in a xml element. More... | |
void | GetName (xmlTextReaderPtr reader, string &str) |
Get the name of a xml element. More... | |
void | GetValue (xmlTextReaderPtr reader, string &str) |
Get the value of a xml element. More... | |
int | main (int argc, char **argv) |
void | make6DofMarker (bool fixed, std::string name, double x, double y, double z) |
Marker | makeBox (InteractiveMarker &msg) |
InteractiveMarkerControl & | makeBoxControl (InteractiveMarker &msg) |
void | NodeHandler (xmlTextReaderPtr reader) |
void | processFeedback (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
void | set_label_pos (double x, double y, double z, visualization_msgs::Marker *msg, std::vector< visualization_msgs::Marker > *marker_vec) |
Variables | |
float | marker_pos = 0 |
tf::TransformListener * | p_listener |
boost::shared_ptr < interactive_markers::InteractiveMarkerServer > | server |
std::vector< boost::shared_ptr < t_reference_frame > > | v_rf |
A example code just to show all the onboar reference systems in the atlascar.
Definition in file show_axes.cpp.
#define _atlascar_transforms_CPP_ |
Definition at line 28 of file show_axes.cpp.
#define PFLN {printf("FILE %s LINE %d\n",__FILE__, __LINE__);} |
Definition at line 62 of file show_axes.cpp.
int add_to_viz_markers_vec | ( | std::vector< visualization_msgs::Marker > * | marker_vec | ) |
Definition at line 191 of file show_axes.cpp.
int get_i_from_name | ( | std::vector< boost::shared_ptr< t_reference_frame > > * | v_rf, |
std::string | name | ||
) |
Definition at line 81 of file show_axes.cpp.
void GetAttribute | ( | xmlTextReaderPtr | reader, |
const xmlChar * | name, | ||
string & | str | ||
) |
Get the value of an attribute in a xml element.
This function reads the value of an attribute in the current xml element in the reader.
reader | xmlTextReaderPtr pointing to the xml object |
name | name of the attribute to read |
str | variable that will store the value |
Definition at line 301 of file show_axes.cpp.
void GetName | ( | xmlTextReaderPtr | reader, |
string & | str | ||
) |
Get the name of a xml element.
This function reads the name of the current xml element in the reader.
reader | xmlTextReaderPtr pointing to the xml object |
str | variable that will store the name |
Definition at line 270 of file show_axes.cpp.
void GetValue | ( | xmlTextReaderPtr | reader, |
string & | str | ||
) |
Get the value of a xml element.
This function reads the value of the current xml element in the reader.
reader | xmlTextReaderPtr pointing to the xml object |
str | variable that will store the value |
Definition at line 285 of file show_axes.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 328 of file show_axes.cpp.
void make6DofMarker | ( | bool | fixed, |
std::string | name, | ||
double | x, | ||
double | y, | ||
double | z | ||
) |
Definition at line 219 of file show_axes.cpp.
Marker makeBox | ( | InteractiveMarker & | msg | ) |
Definition at line 96 of file show_axes.cpp.
InteractiveMarkerControl& makeBoxControl | ( | InteractiveMarker & | msg | ) |
Definition at line 132 of file show_axes.cpp.
void NodeHandler | ( | xmlTextReaderPtr | reader | ) |
Definition at line 309 of file show_axes.cpp.
void processFeedback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Definition at line 111 of file show_axes.cpp.
void set_label_pos | ( | double | x, |
double | y, | ||
double | z, | ||
visualization_msgs::Marker * | msg, | ||
std::vector< visualization_msgs::Marker > * | marker_vec | ||
) |
Definition at line 141 of file show_axes.cpp.
float marker_pos = 0 |
Definition at line 71 of file show_axes.cpp.
tf::TransformListener* p_listener |
Definition at line 69 of file show_axes.cpp.
boost::shared_ptr<interactive_markers::InteractiveMarkerServer> server |
Definition at line 70 of file show_axes.cpp.
std::vector<boost::shared_ptr <t_reference_frame> > v_rf |
Definition at line 79 of file show_axes.cpp.