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, std::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 6 of file laserFromPointCloud.cpp.

◆ DEG2RAD

#define DEG2RAD   M_PI/180.0

Definition at line 29 of file laserFromPointCloud.cpp.

Function Documentation

◆ LASER_FROM_POINTCLOUD()

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

Definition at line 32 of file laserFromPointCloud.cpp.

◆ ros_compute_and_send_pc()

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

Definition at line 75 of file laserFromPointCloud.cpp.

◆ ros_init_pc()

void ros_init_pc ( )

Definition at line 60 of file laserFromPointCloud.cpp.

◆ rotate_pc()

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

Definition at line 338 of file laserFromPointCloud.cpp.

Variable Documentation

◆ pointCloud_outTopic

Definition at line 57 of file laserFromPointCloud.cpp.

◆ rosNode

yarp::os::Node* rosNode =nullptr

Definition at line 58 of file laserFromPointCloud.cpp.