Public Member Functions | Public Attributes | List of all members
CameraListener Class Reference
Inheritance diagram for CameraListener:
Inheritance graph
[legend]

Public Member Functions

virtual void onConnect (const Controller &)
 
virtual void onConnect (const Controller &)
 
virtual void onDeviceChange (const Controller &)
 
virtual void onDeviceChange (const Controller &)
 
virtual void onDisconnect (const Controller &)
 
virtual void onDisconnect (const Controller &)
 
virtual void onExit (const Controller &)
 
virtual void onExit (const Controller &)
 
virtual void onFocusGained (const Controller &)
 
virtual void onFocusGained (const Controller &)
 
virtual void onFocusLost (const Controller &)
 
virtual void onFocusLost (const Controller &)
 
virtual void onFrame (const Controller &)
 
virtual void onFrame (const Controller &)
 
virtual void onInit (const Controller &)
 
virtual void onInit (const Controller &)
 
virtual void onServiceConnect (const Controller &)
 
virtual void onServiceConnect (const Controller &)
 
virtual void onServiceDisconnect (const Controller &)
 
virtual void onServiceDisconnect (const Controller &)
 
- Public Member Functions inherited from Leap::Listener
def __disown__ (self)
 
def __init__ (self)
 
LEAP_EXPORT Listener ()
 
def on_connect (self, arg0)
 
def on_device_change (self, arg0)
 
def on_disconnect (self, arg0)
 
def on_exit (self, arg0)
 
def on_focus_gained (self, arg0)
 
def on_focus_lost (self, arg0)
 
def on_frame (self, arg0)
 
def on_images (self, arg0)
 
def on_init (self, arg0)
 
def on_service_connect (self, arg0)
 
def on_service_disconnect (self, arg0)
 
virtual LEAP_EXPORT void onImages (const Controller &)
 
virtual LEAP_EXPORT ~Listener ()
 

Public Attributes

boost::shared_ptr< ros::NodeHandle_left_node
 
ros::Publisher _pub_image_left
 
ros::Publisher _pub_image_right
 
ros::Publisher _pub_info_left
 
ros::Publisher _pub_info_right
 
boost::shared_ptr< ros::NodeHandle_right_node
 
bool enable_controller_info = false
 
camera_info_manager::CameraInfoManagerinfo_mgr_left
 
camera_info_manager::CameraInfoManagerinfo_mgr_right
 
unsigned int seq
 
- Public Attributes inherited from Leap::Listener
 this
 

Detailed Description

Definition at line 29 of file leap_camera.cpp.

Member Function Documentation

virtual void CameraListener::onConnect ( const Controller )
virtual

Called when the Controller object connects to the Leap Motion software and the Leap Motion hardware device is plugged in, or when this Listener object is added to a Controller that is already connected.

When this callback is invoked, Controller::isServiceConnected is true, Controller::devices() is not empty, and, for at least one of the Device objects in the list, Device::isStreaming() is true.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onConnect ( const Controller )
virtual

Called when the Controller object connects to the Leap Motion software and the Leap Motion hardware device is plugged in, or when this Listener object is added to a Controller that is already connected.

When this callback is invoked, Controller::isServiceConnected is true, Controller::devices() is not empty, and, for at least one of the Device objects in the list, Device::isStreaming() is true.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 92 of file leap_camera.cpp.

virtual void CameraListener::onDeviceChange ( const Controller )
virtual

Called when a Leap Motion controller plugged in, unplugged, or the device changes state.

State changes include changes in frame rate and entering or leaving "robust" mode. Note that there is currently no way to query whether a device is in robust mode. You can use Frame::currentFramerate() to get the framerate.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.2

Reimplemented from Leap::Listener.

void CameraListener::onDeviceChange ( const Controller )
virtual

Called when a Leap Motion controller plugged in, unplugged, or the device changes state.

State changes include changes in frame rate and entering or leaving "robust" mode. Note that there is currently no way to query whether a device is in robust mode. You can use Frame::currentFramerate() to get the framerate.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.2

Reimplemented from Leap::Listener.

Definition at line 185 of file leap_camera.cpp.

virtual void CameraListener::onDisconnect ( const Controller )
virtual

Called when the Controller object disconnects from the Leap Motion software or the Leap Motion hardware is unplugged. The controller can disconnect when the Leap Motion device is unplugged, the user shuts the Leap Motion software down, or the Leap Motion software encounters an unrecoverable error.

Note: When you launch a Leap-enabled application in a debugger, the Leap Motion library does not disconnect from the application. This is to allow you to step through code without losing the connection because of time outs.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onDisconnect ( const Controller )
virtual

Called when the Controller object disconnects from the Leap Motion software or the Leap Motion hardware is unplugged. The controller can disconnect when the Leap Motion device is unplugged, the user shuts the Leap Motion software down, or the Leap Motion software encounters an unrecoverable error.

Note: When you launch a Leap-enabled application in a debugger, the Leap Motion library does not disconnect from the application. This is to allow you to step through code without losing the connection because of time outs.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 100 of file leap_camera.cpp.

virtual void CameraListener::onExit ( const Controller )
virtual

Called when this Listener object is removed from the Controller or the Controller instance is destroyed.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onExit ( const Controller )
virtual

Called when this Listener object is removed from the Controller or the Controller instance is destroyed.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 105 of file leap_camera.cpp.

virtual void CameraListener::onFocusGained ( const Controller )
virtual

Called when this application becomes the foreground application.

Only the foreground application receives tracking data from the Leap Motion Controller. This function is only called when the controller object is in a connected state.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onFocusGained ( const Controller )
virtual

Called when this application becomes the foreground application.

Only the foreground application receives tracking data from the Leap Motion Controller. This function is only called when the controller object is in a connected state.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 177 of file leap_camera.cpp.

virtual void CameraListener::onFocusLost ( const Controller )
virtual

Called when this application loses the foreground focus.

Only the foreground application receives tracking data from the Leap Motion Controller. This function is only called when the controller object is in a connected state.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onFocusLost ( const Controller )
virtual

Called when this application loses the foreground focus.

Only the foreground application receives tracking data from the Leap Motion Controller. This function is only called when the controller object is in a connected state.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 181 of file leap_camera.cpp.

virtual void CameraListener::onFrame ( const Controller )
virtual

Called when a new frame of hand and finger tracking data is available. Access the new frame data using the Controller::frame() function.

Note, the Controller skips any pending onFrame events while your onFrame handler executes. If your implementation takes too long to return, one or more frames can be skipped. The Controller still inserts the skipped frames into the frame history. You can access recent frames by setting the history parameter when calling the Controller::frame() function. You can determine if any pending onFrame events were skipped by comparing the ID of the most recent frame with the ID of the last received frame.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onFrame ( const Controller )
virtual

Called when a new frame of hand and finger tracking data is available. Access the new frame data using the Controller::frame() function.

Note, the Controller skips any pending onFrame events while your onFrame handler executes. If your implementation takes too long to return, one or more frames can be skipped. The Controller still inserts the skipped frames into the frame history. You can access recent frames by setting the history parameter when calling the Controller::frame() function. You can determine if any pending onFrame events were skipped by comparing the ID of the most recent frame with the ID of the last received frame.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 109 of file leap_camera.cpp.

virtual void CameraListener::onInit ( const Controller )
virtual

Called once, when this Listener object is newly added to a Controller.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

void CameraListener::onInit ( const Controller )
virtual

Called once, when this Listener object is newly added to a Controller.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.0

Reimplemented from Leap::Listener.

Definition at line 56 of file leap_camera.cpp.

virtual void CameraListener::onServiceConnect ( const Controller )
virtual

Called when the Leap Motion daemon/service connects to your application Controller.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.2

Reimplemented from Leap::Listener.

void CameraListener::onServiceConnect ( const Controller )
virtual

Called when the Leap Motion daemon/service connects to your application Controller.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.2

Reimplemented from Leap::Listener.

Definition at line 195 of file leap_camera.cpp.

virtual void CameraListener::onServiceDisconnect ( const Controller )
virtual

Called if the Leap Motion daemon/service disconnects from your application Controller.

Normally, this callback is not invoked. It is only called if some external event or problem shuts down the service or otherwise interrupts the connection.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.2

Reimplemented from Leap::Listener.

void CameraListener::onServiceDisconnect ( const Controller )
virtual

Called if the Leap Motion daemon/service disconnects from your application Controller.

Normally, this callback is not invoked. It is only called if some external event or problem shuts down the service or otherwise interrupts the connection.

Parameters
controllerThe Controller object invoking this callback function.
Since
1.2

Reimplemented from Leap::Listener.

Definition at line 199 of file leap_camera.cpp.

Member Data Documentation

boost::shared_ptr< ros::NodeHandle > CameraListener::_left_node

Definition at line 32 of file leap_camera.cpp.

ros::Publisher CameraListener::_pub_image_left

Definition at line 35 of file leap_camera.cpp.

ros::Publisher CameraListener::_pub_image_right

Definition at line 37 of file leap_camera.cpp.

ros::Publisher CameraListener::_pub_info_left

Definition at line 36 of file leap_camera.cpp.

ros::Publisher CameraListener::_pub_info_right

Definition at line 38 of file leap_camera.cpp.

boost::shared_ptr< ros::NodeHandle > CameraListener::_right_node

Definition at line 33 of file leap_camera.cpp.

bool CameraListener::enable_controller_info = false

Definition at line 35 of file lmc_camera_node.cpp.

camera_info_manager::CameraInfoManager * CameraListener::info_mgr_left

Definition at line 40 of file leap_camera.cpp.

camera_info_manager::CameraInfoManager * CameraListener::info_mgr_right

Definition at line 39 of file leap_camera.cpp.

unsigned int CameraListener::seq

Definition at line 41 of file leap_camera.cpp.


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


leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Tue Jun 2 2020 03:58:01