Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
bta_ros::BtaRos Class Reference

#include <bta_ros.hpp>

List of all members.

Public Member Functions

 BtaRos (ros::NodeHandle nh_camera, ros::NodeHandle nh_private, std::string nodeName)
 Class constructor.
void close ()
 Closes the connection to the device.
int connectCamera ()
 Helper for connect to the device.
int initialize ()
 Initializes the device and parameters.
void publishData ()
 Publish the data based on set up parameters.
virtual ~BtaRos ()
 Class destructor.

Static Public Member Functions

static void BTA_CALLCONV infoEventCb (BTA_EventId eventId, int8_t *msg)

Private Types

typedef bta_ros::bta_rosConfig Config
typedef
dynamic_reconfigure::Server
< Config
ReconfigureServer

Private Member Functions

void callback (bta_ros::bta_rosConfig &config, uint32_t level)
 Callback for rqt_reconfigure. It is called any time we change a parameter in the visual interface.
size_t getDataSize (BTA_DataFormat dataFormat)
 Returns the size of the data based in BTA_DataFormat.
std::string getDataType (BTA_DataFormat dataFormat)
 Returns the data encoding flat based in BTA_DataFormat.
void parseConfig ()
 Reads configuration from the server parameters.

Private Attributes

std::string calibFileName_
camera_info_manager::CameraInfoManager cim_tof_
BTA_Config config_
bool config_init_
boost::mutex connect_mutex_
BTA_Handle handle_
image_transport::ImageTransport it_
ros::NodeHandle nh_
ros::NodeHandle nh_private_
std::string nodeName_
image_transport::CameraPublisher pub_amp_
image_transport::CameraPublisher pub_dis_
ros::Publisher pub_xyz_
boost::shared_ptr
< ReconfigureServer
reconfigure_server_
uint8_t tcpDeviceIpAddr_ [6]
std::string uartPortName_
uint8_t udpControlInIpAddr_ [6]
uint8_t udpControlOutIpAddr_ [6]
uint8_t udpDataIpAddr_ [6]

Detailed Description

Definition at line 82 of file bta_ros.hpp.


Member Typedef Documentation

typedef bta_ros::bta_rosConfig bta_ros::BtaRos::Config [private]

Definition at line 85 of file bta_ros.hpp.

typedef dynamic_reconfigure::Server<Config> bta_ros::BtaRos::ReconfigureServer [private]

Definition at line 86 of file bta_ros.hpp.


Constructor & Destructor Documentation

bta_ros::BtaRos::BtaRos ( ros::NodeHandle  nh_camera,
ros::NodeHandle  nh_private,
std::string  nodeName 
)

Class constructor.

param [in] ros::NodeHandle param [in] ros::NodeHandle param [in] std::string

Definition at line 48 of file bta_ros.cpp.

bta_ros::BtaRos::~BtaRos ( ) [virtual]

Class destructor.

Definition at line 65 of file bta_ros.cpp.


Member Function Documentation

void bta_ros::BtaRos::callback ( bta_ros::bta_rosConfig &  config,
uint32_t  level 
) [private]

Callback for rqt_reconfigure. It is called any time we change a parameter in the visual interface.

Parameters:
[in]argos3d_p100::argos3d_p100Config
[in]uint32_t

Definition at line 85 of file bta_ros.cpp.

Closes the connection to the device.

Definition at line 71 of file bta_ros.cpp.

Helper for connect to the device.

Definition at line 525 of file bta_ros.cpp.

size_t bta_ros::BtaRos::getDataSize ( BTA_DataFormat  dataFormat) [private]

Returns the size of the data based in BTA_DataFormat.

Definition at line 188 of file bta_ros.cpp.

std::string bta_ros::BtaRos::getDataType ( BTA_DataFormat  dataFormat) [private]

Returns the data encoding flat based in BTA_DataFormat.

Definition at line 202 of file bta_ros.cpp.

static void BTA_CALLCONV bta_ros::BtaRos::infoEventCb ( BTA_EventId  eventId,
int8_t *  msg 
) [inline, static]

Definition at line 193 of file bta_ros.hpp.

Initializes the device and parameters.

Definition at line 570 of file bta_ros.cpp.

void bta_ros::BtaRos::parseConfig ( ) [private]

Reads configuration from the server parameters.

Definition at line 394 of file bta_ros.cpp.

Publish the data based on set up parameters.

Definition at line 216 of file bta_ros.cpp.


Member Data Documentation

std::string bta_ros::BtaRos::calibFileName_ [private]

Definition at line 103 of file bta_ros.hpp.

Definition at line 90 of file bta_ros.hpp.

BTA_Config bta_ros::BtaRos::config_ [private]

Definition at line 106 of file bta_ros.hpp.

Definition at line 96 of file bta_ros.hpp.

boost::mutex bta_ros::BtaRos::connect_mutex_ [private]

Definition at line 98 of file bta_ros.hpp.

BTA_Handle bta_ros::BtaRos::handle_ [private]

Definition at line 105 of file bta_ros.hpp.

Definition at line 91 of file bta_ros.hpp.

Definition at line 88 of file bta_ros.hpp.

Definition at line 88 of file bta_ros.hpp.

std::string bta_ros::BtaRos::nodeName_ [private]

Definition at line 89 of file bta_ros.hpp.

Definition at line 92 of file bta_ros.hpp.

Definition at line 92 of file bta_ros.hpp.

Definition at line 93 of file bta_ros.hpp.

Definition at line 95 of file bta_ros.hpp.

uint8_t bta_ros::BtaRos::tcpDeviceIpAddr_[6] [private]

Definition at line 101 of file bta_ros.hpp.

std::string bta_ros::BtaRos::uartPortName_ [private]

Definition at line 103 of file bta_ros.hpp.

Definition at line 101 of file bta_ros.hpp.

Definition at line 101 of file bta_ros.hpp.

uint8_t bta_ros::BtaRos::udpDataIpAddr_[6] [private]

Definition at line 101 of file bta_ros.hpp.


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


bta_ros
Author(s): Angel Merino , Simon Vogl
autogenerated on Wed Sep 16 2015 10:07:06