#include "../include/base_realsense_node.h"#include "assert.h"#include <boost/algorithm/string.hpp>#include <algorithm>#include <cctype>#include <mutex>#include <tf/transform_broadcaster.h>
Go to the source code of this file.
Namespaces | |
| namespace | realsense2_camera |
Defines | |
| #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 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 16 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 14 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 15 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 13 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 254 of file base_realsense_node.cpp.
| std::map<std::string, int> get_enum_method | ( | rs2::options | sensor, |
| rs2_option | option | ||
| ) |
Definition at line 208 of file base_realsense_node.cpp.
| bool is_checkbox | ( | rs2::options | sensor, |
| rs2_option | option | ||
| ) |
Definition at line 182 of file base_realsense_node.cpp.
| bool is_enum_option | ( | rs2::options | sensor, |
| rs2_option | option | ||
| ) |
Definition at line 190 of file base_realsense_node.cpp.
| bool is_int_option | ( | rs2::options | sensor, |
| rs2_option | option | ||
| ) |
Definition at line 202 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 245 of file base_realsense_node.cpp.
| void reverse_memcpy | ( | unsigned char * | dst, |
| const unsigned char * | src, | ||
| size_t | n | ||
| ) |
Definition at line 1832 of file base_realsense_node.cpp.