See README. More...
#include <ros/ros.h>
#include <visualization_msgs/Marker.h>
#include <gazebo_msgs/ContactsState.h>
#include <string>
#include <vector>
#include <boost/thread/mutex.hpp>
#include <std_msgs/Float64.h>
Go to the source code of this file.
Macros | |
#define | COUNTDOWN_MAX 5 |
#define | FF 0 |
#define | LF 3 |
#define | MF 1 |
#define | RF 2 |
#define | TH 4 |
Functions | |
void | callback_ff (const gazebo_msgs::ContactsState &msg) |
void | callback_lf (const gazebo_msgs::ContactsState &msg) |
void | callback_mf (const gazebo_msgs::ContactsState &msg) |
void | callback_rf (const gazebo_msgs::ContactsState &msg) |
void | callback_th (const gazebo_msgs::ContactsState &msg) |
int | main (int argc, char **argv) |
void | publish_marker (unsigned int id, std::string framesuffix, float force) |
void | publish_marker_special (unsigned int id, std::string framesuffix, const ::geometry_msgs::Vector3 &force, int col) |
Variables | |
int | colors [8][3] |
int | countdown [5] = {COUNTDOWN_MAX, COUNTDOWN_MAX, COUNTDOWN_MAX, COUNTDOWN_MAX, COUNTDOWN_MAX} |
std_msgs::Float64::_data_type | data [5] |
ros::Publisher | marker_pub |
uint32_t | shape = visualization_msgs::Marker::ARROW |
ros::Subscriber | sub [5] |
boost::mutex | update_mutex |
See README.
Definition in file sr_bumper_rviz_marker.cpp.
#define COUNTDOWN_MAX 5 |
Definition at line 37 of file sr_bumper_rviz_marker.cpp.
#define FF 0 |
Definition at line 38 of file sr_bumper_rviz_marker.cpp.
#define LF 3 |
Definition at line 41 of file sr_bumper_rviz_marker.cpp.
#define MF 1 |
Definition at line 39 of file sr_bumper_rviz_marker.cpp.
#define RF 2 |
Definition at line 40 of file sr_bumper_rviz_marker.cpp.
#define TH 4 |
Definition at line 42 of file sr_bumper_rviz_marker.cpp.
void callback_ff | ( | const gazebo_msgs::ContactsState & | msg | ) |
Definition at line 165 of file sr_bumper_rviz_marker.cpp.
void callback_lf | ( | const gazebo_msgs::ContactsState & | msg | ) |
Definition at line 219 of file sr_bumper_rviz_marker.cpp.
void callback_mf | ( | const gazebo_msgs::ContactsState & | msg | ) |
Definition at line 183 of file sr_bumper_rviz_marker.cpp.
void callback_rf | ( | const gazebo_msgs::ContactsState & | msg | ) |
Definition at line 201 of file sr_bumper_rviz_marker.cpp.
void callback_th | ( | const gazebo_msgs::ContactsState & | msg | ) |
Definition at line 237 of file sr_bumper_rviz_marker.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 256 of file sr_bumper_rviz_marker.cpp.
void publish_marker | ( | unsigned int | id, |
std::string | framesuffix, | ||
float | force | ||
) |
Definition at line 112 of file sr_bumper_rviz_marker.cpp.
void publish_marker_special | ( | unsigned int | id, |
std::string | framesuffix, | ||
const ::geometry_msgs::Vector3 & | force, | ||
int | col | ||
) |
Definition at line 61 of file sr_bumper_rviz_marker.cpp.
int colors[8][3] |
Definition at line 49 of file sr_bumper_rviz_marker.cpp.
int countdown[5] = {COUNTDOWN_MAX, COUNTDOWN_MAX, COUNTDOWN_MAX, COUNTDOWN_MAX, COUNTDOWN_MAX} |
Definition at line 59 of file sr_bumper_rviz_marker.cpp.
std_msgs::Float64::_data_type data[5] |
Definition at line 47 of file sr_bumper_rviz_marker.cpp.
ros::Publisher marker_pub |
Definition at line 46 of file sr_bumper_rviz_marker.cpp.
uint32_t shape = visualization_msgs::Marker::ARROW |
Definition at line 58 of file sr_bumper_rviz_marker.cpp.
ros::Subscriber sub[5] |
Definition at line 45 of file sr_bumper_rviz_marker.cpp.
boost::mutex update_mutex |
Definition at line 48 of file sr_bumper_rviz_marker.cpp.