Point Cloud Library (PCL)  1.7.0
Public Types | Public Member Functions
pcl::RobotEyeGrabber Class Reference

Grabber for the Ocular Robotics RobotEye sensor. More...

#include <pcl/io/robot_eye_grabber.h>

+ Inheritance diagram for pcl::RobotEyeGrabber:

List of all members.

Public Types

typedef void( sig_cb_robot_eye_point_cloud_xyzi )(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZI > > &)
 Signal used for the point cloud callback.

Public Member Functions

 RobotEyeGrabber ()
 RobotEyeGrabber default constructor.
 RobotEyeGrabber (const boost::asio::ip::address &ipAddress, unsigned short port=443)
 RobotEyeGrabber constructor taking a specified IP address and data port.
virtual ~RobotEyeGrabber () throw ()
 virtual Destructor inherited from the Grabber interface.
virtual void start ()
 Starts the RobotEye grabber.
virtual void stop ()
 Stops the RobotEye grabber.
virtual std::string getName () const
 Obtains the name of this I/O Grabber.
virtual bool isRunning () const
 Check if the grabber is still running.
virtual float getFramesPerSecond () const
 Returns the number of frames per second.
void setSensorAddress (const boost::asio::ip::address &ipAddress)
 Set/get ip address of the sensor that sends the data.
const boost::asio::ip::address & getSensorAddress () const
void setDataPort (unsigned short port)
 Set/get the port number which receives data from the sensor.
unsigned short getDataPort () const
void setSignalPointCloudSize (std::size_t numerOfPoints)
 Set/get the number of points to accumulate before the grabber callback is signaled.
std::size_t getSignalPointCloudSize () const
boost::shared_ptr
< pcl::PointCloud
< pcl::PointXYZI > > 
getPointCloud () const
 Returns the point cloud with point accumulated by the grabber.

Detailed Description

Grabber for the Ocular Robotics RobotEye sensor.

Definition at line 56 of file robot_eye_grabber.h.


Member Typedef Documentation

typedef void( pcl::RobotEyeGrabber::sig_cb_robot_eye_point_cloud_xyzi)(const boost::shared_ptr< const pcl::PointCloud< pcl::PointXYZI > > &)

Signal used for the point cloud callback.

This signal is sent when the accumulated number of points reaches the limit specified by setSignalPointCloudSize().

Definition at line 64 of file robot_eye_grabber.h.


Constructor & Destructor Documentation

RobotEyeGrabber default constructor.

pcl::RobotEyeGrabber::RobotEyeGrabber ( const boost::asio::ip::address &  ipAddress,
unsigned short  port = 443 
)

RobotEyeGrabber constructor taking a specified IP address and data port.

virtual pcl::RobotEyeGrabber::~RobotEyeGrabber ( ) throw () [virtual]

virtual Destructor inherited from the Grabber interface.

It never throws.


Member Function Documentation

unsigned short pcl::RobotEyeGrabber::getDataPort ( ) const
virtual float pcl::RobotEyeGrabber::getFramesPerSecond ( ) const [virtual]

Returns the number of frames per second.

Implements pcl::Grabber.

virtual std::string pcl::RobotEyeGrabber::getName ( ) const [virtual]

Obtains the name of this I/O Grabber.

Returns:
The name of the grabber

Implements pcl::Grabber.

Returns the point cloud with point accumulated by the grabber.

It is not safe to access this point cloud except if the grabber is stopped or during the grabber callback.

const boost::asio::ip::address& pcl::RobotEyeGrabber::getSensorAddress ( ) const
virtual bool pcl::RobotEyeGrabber::isRunning ( ) const [virtual]

Check if the grabber is still running.

Returns:
TRUE if the grabber is running, FALSE otherwise

Implements pcl::Grabber.

void pcl::RobotEyeGrabber::setDataPort ( unsigned short  port)

Set/get the port number which receives data from the sensor.

The default is 443.

void pcl::RobotEyeGrabber::setSensorAddress ( const boost::asio::ip::address &  ipAddress)

Set/get ip address of the sensor that sends the data.

The default is address_v4::any ().

void pcl::RobotEyeGrabber::setSignalPointCloudSize ( std::size_t  numerOfPoints)

Set/get the number of points to accumulate before the grabber callback is signaled.

The default is 1000.

virtual void pcl::RobotEyeGrabber::start ( ) [virtual]

Starts the RobotEye grabber.

The grabber runs on a separate thread, this call will return without blocking.

Implements pcl::Grabber.

virtual void pcl::RobotEyeGrabber::stop ( ) [virtual]

Stops the RobotEye grabber.

Implements pcl::Grabber.


The documentation for this class was generated from the following file: