YARP
Yet Another Robot Platform
laserFromPointCloud.cpp File Reference
#include "laserFromPointCloud.h"
#include <yarp/os/Time.h>
#include <yarp/os/Log.h>
#include <yarp/os/LogStream.h>
#include <yarp/os/ResourceFinder.h>
#include <yarp/math/Math.h>
#include <yarp/rosmsg/sensor_msgs/PointCloud2.h>
#include <yarp/os/Node.h>
#include <yarp/os/Publisher.h>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <limits>
#include <mutex>
+ Include dependency graph for laserFromPointCloud.cpp:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 
#define DEG2RAD   M_PI/180.0
 

Functions

const yarp::os::LogComponentLASER_FROM_POINTCLOUD ()
 
void ros_init_pc ()
 
void ros_compute_and_send_pc (const yarp::sig::PointCloud< yarp::sig::DataXYZ > &pc, string frame_id)
 
void rotate_pc (yarp::sig::PointCloud< yarp::sig::DataXYZ > &pc, const yarp::sig::Matrix &m)
 

Variables

yarp::os::Publisher< yarp::rosmsg::sensor_msgs::PointCloud2 > * pointCloud_outTopic = nullptr
 
yarp::os::NoderosNode =nullptr
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 19 of file laserFromPointCloud.cpp.

◆ DEG2RAD

#define DEG2RAD   M_PI/180.0

Definition at line 43 of file laserFromPointCloud.cpp.

Function Documentation

◆ LASER_FROM_POINTCLOUD()

const yarp::os::LogComponent& LASER_FROM_POINTCLOUD ( )

Definition at line 46 of file laserFromPointCloud.cpp.

◆ ros_compute_and_send_pc()

void ros_compute_and_send_pc ( const yarp::sig::PointCloud< yarp::sig::DataXYZ > &  pc,
string  frame_id 
)

Definition at line 89 of file laserFromPointCloud.cpp.

◆ ros_init_pc()

void ros_init_pc ( )

Definition at line 74 of file laserFromPointCloud.cpp.

◆ rotate_pc()

void rotate_pc ( yarp::sig::PointCloud< yarp::sig::DataXYZ > &  pc,
const yarp::sig::Matrix m 
)

Definition at line 348 of file laserFromPointCloud.cpp.

Variable Documentation

◆ pointCloud_outTopic

Definition at line 71 of file laserFromPointCloud.cpp.

◆ rosNode

yarp::os::Node* rosNode =nullptr

Definition at line 72 of file laserFromPointCloud.cpp.