forked from hisashiishida/volumetric_drilling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollision_publisher.h
31 lines (25 loc) · 917 Bytes
/
collision_publisher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef COLLISION_PUBLISHER_H
#define COLLISION_PUBLISHER_H
#include "ros/ros.h"
#include <string>
#include <vdrilling_msgs/points.h>
#include <vdrilling_msgs/UInt8Stamped.h>
#include <vdrilling_msgs/VolumeProp.h>
class DrillingPublisher{
public:
DrillingPublisher(std::string a_namespace, std::string a_plugin);
~DrillingPublisher();
void init(std::string a_namespace, std::string a_plugin);
ros::NodeHandle* m_rosNode;
void voxelsRemoved(double ray[3], float vcolor[4], double time);
void burrChange(int burrSize, double time);
void volumeProp(float dimensions[3], int voxelCount[3]);
private:
ros::Publisher m_voxelsRemovedPub;
ros::Publisher m_burrChangePub;
ros::Publisher m_volumePropPub;
vdrilling_msgs::points voxel_msg;
vdrilling_msgs::UInt8Stamped burr_msg;
vdrilling_msgs::VolumeProp volume_msg;
};
#endif //VOLUMETRIC_PLUGIN_COLLISION_PUBLISHER_H