Namespaces | Macros | Functions
base_realsense_node.cpp File Reference
#include "realsense2_camera/base_realsense_node.h"
#include "assert.h"
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <cctype>
#include <mutex>
#include <dynamic_reconfigure/IntParameter.h>
#include <dynamic_reconfigure/Reconfigure.h>
#include <dynamic_reconfigure/Config.h>
Include dependency graph for base_realsense_node.cpp:

Go to the source code of this file.

Namespaces

 realsense2_camera
 

Macros

#define ALIGNED_DEPTH_TO_FRAME_ID(sip)   (static_cast<std::ostringstream&&>(std::ostringstream() << "camera_aligned_depth_to_" << STREAM_NAME(sip) << "_frame")).str()
 
#define FRAME_ID(sip)   (static_cast<std::ostringstream&&>(std::ostringstream() << "camera_" << STREAM_NAME(sip) << "_frame")).str()
 
#define OPTICAL_FRAME_ID(sip)   (static_cast<std::ostringstream&&>(std::ostringstream() << "camera_" << STREAM_NAME(sip) << "_optical_frame")).str()
 
#define STREAM_NAME(sip)   (static_cast<std::ostringstream&&>(std::ostringstream() << _stream_name[sip.first] << ((sip.second>0) ? std::to_string(sip.second) : ""))).str()
 

Functions

std::string create_graph_resource_name (const std::string &original_name)
 
std::map< std::string, int > get_enum_method (rs2::options sensor, rs2_option option)
 
bool is_checkbox (rs2::options sensor, rs2_option option)
 
bool is_enum_option (rs2::options sensor, rs2_option option)
 
bool is_int_option (rs2::options sensor, rs2_option option)
 
bool isValidCharInName (char c)
 
template<typename T >
T lerp (const T &a, const T &b, const double t)
 
template<typename K , typename V >
std::ostream & realsense2_camera::operator<< (std::ostream &os, const std::map< K, V > &m)
 
void reverse_memcpy (unsigned char *dst, const unsigned char *src, size_t n)
 

Macro Definition Documentation

◆ ALIGNED_DEPTH_TO_FRAME_ID

#define ALIGNED_DEPTH_TO_FRAME_ID (   sip)    (static_cast<std::ostringstream&&>(std::ostringstream() << "camera_aligned_depth_to_" << STREAM_NAME(sip) << "_frame")).str()

Definition at line 19 of file base_realsense_node.cpp.

◆ FRAME_ID

#define FRAME_ID (   sip)    (static_cast<std::ostringstream&&>(std::ostringstream() << "camera_" << STREAM_NAME(sip) << "_frame")).str()

Definition at line 17 of file base_realsense_node.cpp.

◆ OPTICAL_FRAME_ID

#define OPTICAL_FRAME_ID (   sip)    (static_cast<std::ostringstream&&>(std::ostringstream() << "camera_" << STREAM_NAME(sip) << "_optical_frame")).str()

Definition at line 18 of file base_realsense_node.cpp.

◆ STREAM_NAME

#define STREAM_NAME (   sip)    (static_cast<std::ostringstream&&>(std::ostringstream() << _stream_name[sip.first] << ((sip.second>0) ? std::to_string(sip.second) : ""))).str()

Definition at line 16 of file base_realsense_node.cpp.

Function Documentation

◆ create_graph_resource_name()

std::string create_graph_resource_name ( const std::string original_name)

ROS Graph Resource names don't allow spaces and hyphens (see http://wiki.ros.org/Names), so we replace them here with underscores.

Definition at line 359 of file base_realsense_node.cpp.

◆ get_enum_method()

std::map<std::string, int> get_enum_method ( rs2::options  sensor,
rs2_option  option 
)

Definition at line 311 of file base_realsense_node.cpp.

◆ is_checkbox()

bool is_checkbox ( rs2::options  sensor,
rs2_option  option 
)

Definition at line 281 of file base_realsense_node.cpp.

◆ is_enum_option()

bool is_enum_option ( rs2::options  sensor,
rs2_option  option 
)

Definition at line 289 of file base_realsense_node.cpp.

◆ is_int_option()

bool is_int_option ( rs2::options  sensor,
rs2_option  option 
)

Definition at line 305 of file base_realsense_node.cpp.

◆ isValidCharInName()

bool isValidCharInName ( char  c)

Same as ros::names::isValidCharInName, but re-implemented here because it's not exposed.

Definition at line 350 of file base_realsense_node.cpp.

◆ lerp()

template<typename T >
T lerp ( const T a,
const T b,
const double  t 
)

Definition at line 1367 of file base_realsense_node.cpp.

◆ reverse_memcpy()

void reverse_memcpy ( unsigned char *  dst,
const unsigned char *  src,
size_t  n 
)

Definition at line 2158 of file base_realsense_node.cpp.



realsense2_camera
Author(s): Sergey Dorodnicov , Doron Hirshberg
autogenerated on Thu Mar 24 2022 02:12:40