38 #include <sensor_msgs/PointCloud2.h> 42 void cb(
const sensor_msgs::PointCloud2::ConstPtr & msg)
44 sensor_msgs::PointCloud2 msg2 = *msg;
49 int main(
int argc,
char** argv)
51 ros::init(argc, argv,
"d435_voxel_echoer_node");
57 pub = n.
advertise<sensor_msgs::PointCloud2>(
"/camera/depth/color/points/filtered_echoed", 10);
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
int main(int argc, char **argv)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
static bool waitForValid()
void cb(const sensor_msgs::PointCloud2::ConstPtr &msg)