#include "../include/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>
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) |
#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.
#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.
#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.
#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.
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 358 of file base_realsense_node.cpp.
std::map<std::string, int> get_enum_method | ( | rs2::options | sensor, |
rs2_option | option | ||
) |
Definition at line 310 of file base_realsense_node.cpp.
bool is_checkbox | ( | rs2::options | sensor, |
rs2_option | option | ||
) |
Definition at line 280 of file base_realsense_node.cpp.
bool is_enum_option | ( | rs2::options | sensor, |
rs2_option | option | ||
) |
Definition at line 288 of file base_realsense_node.cpp.
bool is_int_option | ( | rs2::options | sensor, |
rs2_option | option | ||
) |
Definition at line 304 of file base_realsense_node.cpp.
bool isValidCharInName | ( | char | c | ) |
Same as ros::names::isValidCharInName, but re-implemented here because it's not exposed.
Definition at line 349 of file base_realsense_node.cpp.
Definition at line 1359 of file base_realsense_node.cpp.
Definition at line 2141 of file base_realsense_node.cpp.