Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
realsense_camera::SyncNodelet Class Reference

#include <sync_nodelet.h>

Inheritance diagram for realsense_camera::SyncNodelet:
Inheritance graph
[legend]

Public Member Functions

virtual void onInit ()
 
virtual ~SyncNodelet ()
 
- Public Member Functions inherited from realsense_camera::BaseNodelet
virtual bool forcePowerCameraService (realsense_camera::ForcePower::Request &req, realsense_camera::ForcePower::Response &res)
 
virtual bool getCameraOptionValues (realsense_camera::CameraConfiguration::Request &req, realsense_camera::CameraConfiguration::Response &res)
 
virtual bool isPoweredCameraService (realsense_camera::IsPowered::Request &req, realsense_camera::IsPowered::Response &res)
 
virtual void setDepthEnable (bool &enable_depth)
 
virtual bool setPowerCameraService (realsense_camera::SetPower::Request &req, realsense_camera::SetPower::Response &res)
 
virtual ~BaseNodelet ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Protected Member Functions

virtual void publishSyncTopics ()
 
virtual void publishTopic (rs_stream stream_index)
 
virtual void setFrameCallbacks ()
 
virtual void setImageData (rs_stream stream_index)
 
- Protected Member Functions inherited from realsense_camera::BaseNodelet
virtual void advertiseServices ()
 
virtual void advertiseTopics ()
 
virtual void checkError ()
 
virtual std::string checkFirmwareValidation (const std::string &fw_type, const std::string &current_fw, const std::string &camera_name, const std::string &camera_serial_number)
 
virtual bool checkForSubscriber ()
 
virtual bool connectToCamera ()
 
virtual void disableStream (rs_stream stream_index)
 
virtual void enableStream (rs_stream stream_index, int width, int height, rs_format format, int fps)
 
virtual void getCameraExtrinsics ()
 
virtual void getCameraOptions ()
 
virtual void getParameters ()
 
virtual void getStreamCalibData (rs_stream stream_index)
 
virtual ros::Time getTimestamp (rs_stream stream_index, double frame_ts)
 
virtual std::vector< intlistCameras (int num_of_camera)
 
virtual void prepareTransforms ()
 
virtual void publishDynamicTransforms ()
 
virtual void publishPCTopic ()
 
virtual void publishStaticTransforms ()
 
virtual void publishTopic (rs_stream stream_index, rs::frame &frame)
 
virtual std::vector< std::stringsetDynamicReconfServer ()
 
virtual void setImageData (rs_stream stream_index, rs::frame &frame)
 
virtual void setStaticCameraOptions (std::vector< std::string > dynamic_params)
 
virtual void setStreams ()
 
virtual std::string startCamera ()
 
virtual void startDynamicReconfCallback ()
 
virtual std::string stopCamera ()
 
virtual void wrappedSystem (const std::vector< std::string > &string_argv)
 
- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::stringgetName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Protected Attributes

bool duplicate_depth_color_ = false
 
boost::shared_ptr< boost::thread > topic_thread_
 
ros::Time topic_ts_
 
- Protected Attributes inherited from realsense_camera::BaseNodelet
std::string base_frame_id_
 
sensor_msgs::CameraInfoPtr camera_info_ptr_ [STREAM_COUNT] = {}
 
std::vector< CameraOptionscamera_options_
 
image_transport::CameraPublisher camera_publisher_ [STREAM_COUNT] = {}
 
ros::Time camera_start_ts_
 
std::string camera_type_
 
rs_extrinsics color2depth_extrinsic_
 
rs_extrinsics color2ir_extrinsic_
 
std::function< void(rs::frame f)> color_frame_handler_
 
int cv_type_ [STREAM_COUNT]
 
cv::Mat cvWrapper_
 
std::function< void(rs::frame f)> depth_frame_handler_
 
tf::TransformBroadcaster dynamic_tf_broadcaster_
 
bool enable_ [STREAM_COUNT] = {false}
 
bool enable_pointcloud_
 
bool enable_tf_
 
bool enable_tf_dynamic_
 
std::string encoding_ [STREAM_COUNT]
 
ros::ServiceServer force_power_service_
 
rs_format format_ [STREAM_COUNT]
 
int fps_ [STREAM_COUNT]
 
std::string frame_id_ [STREAM_COUNT]
 
std::mutex frame_mutex_ [STREAM_COUNT]
 
ros::ServiceServer get_options_service_
 
int height_ [STREAM_COUNT]
 
cv::Mat image_ [STREAM_COUNT] = {}
 
const uint16_t * image_depth16_
 
std::function< void(rs::frame f)> ir_frame_handler_
 
ros::ServiceServer is_powered_service_
 
float max_z_ = -1.0f
 
std::string mode_
 
ros::NodeHandle nh_
 
std::string nodelet_name_
 
std::string optical_frame_id_ [STREAM_COUNT]
 
ros::NodeHandle pnh_
 
ros::Publisher pointcloud_publisher_
 
rs_contextrs_context_ = NULL
 
rs_devicers_device_
 
rs_errorrs_error_ = NULL
 
rs_source rs_source_ = RS_SOURCE_VIDEO
 
std::string serial_no_
 
ros::ServiceServer set_power_service_
 
bool start_camera_ = true
 
bool start_stop_srv_called_ = false
 
tf2_ros::StaticTransformBroadcaster static_tf_broadcaster_
 
int step_ [STREAM_COUNT]
 
std::queue< pid_t > system_proc_groups_
 
double tf_publication_rate_
 
boost::shared_ptr< boost::thread > transform_thread_
 
ros::Time transform_ts_
 
double ts_ [STREAM_COUNT]
 
int unit_step_size_ [STREAM_COUNT]
 
std::string usb_port_id_
 
int width_ [STREAM_COUNT]
 

Detailed Description

Definition at line 40 of file sync_nodelet.h.

Constructor & Destructor Documentation

realsense_camera::SyncNodelet::~SyncNodelet ( )
virtual

Definition at line 37 of file sync_nodelet.cpp.

Member Function Documentation

void realsense_camera::SyncNodelet::onInit ( )
virtual
void realsense_camera::SyncNodelet::publishSyncTopics ( )
protectedvirtual

Definition at line 54 of file sync_nodelet.cpp.

void realsense_camera::SyncNodelet::publishTopic ( rs_stream  stream_index)
protectedvirtual

Definition at line 134 of file sync_nodelet.cpp.

virtual void realsense_camera::SyncNodelet::setFrameCallbacks ( )
inlineprotectedvirtual

Reimplemented from realsense_camera::BaseNodelet.

Definition at line 52 of file sync_nodelet.h.

void realsense_camera::SyncNodelet::setImageData ( rs_stream  stream_index)
protectedvirtual

Definition at line 171 of file sync_nodelet.cpp.

Member Data Documentation

bool realsense_camera::SyncNodelet::duplicate_depth_color_ = false
protected

Definition at line 49 of file sync_nodelet.h.

boost::shared_ptr<boost::thread> realsense_camera::SyncNodelet::topic_thread_
protected

Definition at line 48 of file sync_nodelet.h.

ros::Time realsense_camera::SyncNodelet::topic_ts_
protected

Definition at line 50 of file sync_nodelet.h.


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


realsense_camera
Author(s): Rajvi Jingar , Reagan Lopez , Matt Hansen , Mark Horn
autogenerated on Mon Jun 10 2019 14:40:37