An agnostic C++ wrapper for the C Astra SDK. This object is wrapped by RosDevice.
More...
#include <Device.hpp>
|
| | Device (const Configuration &configuration) |
| |
| std::vector< ImageStreamMode > | getImageStreamModes (astra_streamconnection_t stream) const |
| |
| bool | onBodyOrientationChange (astra_bodystream_t body_stream, const astra_body_orientation_t &orientation, const astra_skeleton_optimization_t &prev_orientation) |
| |
| bool | onBodySkeletonOptimizationChange (astra_bodystream_t body_stream, const astra_skeleton_optimization_t &optimization, const astra_skeleton_optimization_t &prev_optimization) |
| |
| bool | onBodySkeletonProfileChange (astra_bodystream_t body_stream, const astra_skeleton_profile_t &profile, const astra_skeleton_profile_t &prev_profile) |
| |
| bool | onDepthD2CModeChange (astra_depthstream_t stream, const int &d2c_mode, const bool &prev_d2c_mode) |
| |
| bool | onDepthRegistrationChange (astra_depthstream_t stream, const bool ®istration, const bool &prev_registration) |
| |
| bool | onMirroredChange (astra_streamconnection_t stream, const bool &mirrored, const bool &prev_mirrored) |
| |
| bool | onModeChange (astra_streamconnection_t stream, const ImageStreamMode &mode, const ImageStreamMode &prev_mode) |
| |
| bool | onStreamStartedChange (astra_streamconnection_t stream, const bool &started, const bool &started_prev) |
| |
An agnostic C++ wrapper for the C Astra SDK. This object is wrapped by RosDevice.
Definition at line 21 of file Device.hpp.
◆ ConstPtr
◆ Ptr
◆ Device()
◆ getCameraParameters()
| orbbec_camera_params Device::getCameraParameters |
( |
| ) |
const |
- Returns
- The color and depth camera intrinsics
Definition at line 612 of file Device.cpp.
◆ getChipId()
| boost::optional< std::uint32_t > Device::getChipId |
( |
| ) |
const |
- Returns
- The Orbbec device's Chip ID, or
boost::none if the Device has no depth stream.
Definition at line 633 of file Device.cpp.
◆ getColorImageStreamModes()
◆ getColorUsbInfo()
| boost::optional< astra_usb_info_t > Device::getColorUsbInfo |
( |
| ) |
const |
- Returns
- The USB information for the depth camera, or
boost::none if the Device has no color stream.
Definition at line 644 of file Device.cpp.
◆ getConfiguration() [1/2]
| astra_ros::Device::getConfiguration |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- A constant reference to the configuration.
-
A mutable reference to the configuration. Can be used to update parameters.
Definition at line 401 of file Device.hpp.
◆ getConfiguration() [2/2]
◆ getDepthImageStreamModes()
Get the image modes supported by the depth stream.
- Returns
- boost::none if the device wasn't configured with a depth stream, a list of image modes otherwise.
Definition at line 680 of file Device.cpp.
◆ getDepthUsbInfo()
| boost::optional< astra_usb_info_t > Device::getDepthUsbInfo |
( |
| ) |
const |
- Returns
- The USB information for the depth camera, or
boost::none if the Device has no depth stream.
Definition at line 654 of file Device.cpp.
◆ getImageStreamModes()
◆ getIrImageStreamModes()
Get the image modes supported by the IR stream.
- Returns
- boost::none if the device isn't configured with a IR stream, a list of image modes otherwise.
Definition at line 686 of file Device.cpp.
◆ getIrUsbInfo()
| boost::optional< astra_usb_info_t > Device::getIrUsbInfo |
( |
| ) |
const |
- Returns
- The USB information for the IR camera, or
boost::none if the Device has no IR stream.
Definition at line 664 of file Device.cpp.
◆ getSerialNumber()
| boost::optional< std::string > Device::getSerialNumber |
( |
| ) |
const |
- Returns
- The Orbbec device's serial number, or
boost::none if the Device has no depth stream.
Definition at line 621 of file Device.cpp.
◆ onBodyOrientationChange()
| bool Device::onBodyOrientationChange |
( |
astra_bodystream_t |
body_stream, |
|
|
const astra_body_orientation_t & |
orientation, |
|
|
const astra_skeleton_optimization_t & |
prev_orientation |
|
) |
| |
|
private |
◆ onBodySkeletonOptimizationChange()
| bool Device::onBodySkeletonOptimizationChange |
( |
astra_bodystream_t |
body_stream, |
|
|
const astra_skeleton_optimization_t & |
optimization, |
|
|
const astra_skeleton_optimization_t & |
prev_optimization |
|
) |
| |
|
private |
◆ onBodySkeletonProfileChange()
| bool Device::onBodySkeletonProfileChange |
( |
astra_bodystream_t |
body_stream, |
|
|
const astra_skeleton_profile_t & |
profile, |
|
|
const astra_skeleton_profile_t & |
prev_profile |
|
) |
| |
|
private |
◆ onDepthD2CModeChange()
| bool Device::onDepthD2CModeChange |
( |
astra_depthstream_t |
stream, |
|
|
const int & |
d2c_mode, |
|
|
const bool & |
prev_d2c_mode |
|
) |
| |
|
private |
◆ onDepthRegistrationChange()
| bool Device::onDepthRegistrationChange |
( |
astra_depthstream_t |
stream, |
|
|
const bool & |
registration, |
|
|
const bool & |
prev_registration |
|
) |
| |
|
private |
◆ onMirroredChange()
| bool Device::onMirroredChange |
( |
astra_streamconnection_t |
stream, |
|
|
const bool & |
mirrored, |
|
|
const bool & |
prev_mirrored |
|
) |
| |
|
private |
◆ onModeChange()
◆ onStreamStartedChange()
| bool Device::onStreamStartedChange |
( |
astra_streamconnection_t |
stream, |
|
|
const bool & |
started, |
|
|
const bool & |
started_prev |
|
) |
| |
|
private |
◆ open()
Open an Orbbec device
- Parameters
-
Definition at line 35 of file Device.cpp.
◆ update()
If a new frame is available, process it and call the OnFrame handler as specified in the Configuration.
Definition at line 40 of file Device.cpp.
◆ body_stream_
| boost::optional<astra_bodystream_t> astra_ros::Device::body_stream_ |
|
private |
◆ color_stream_
| boost::optional<astra_colorstream_t> astra_ros::Device::color_stream_ |
|
private |
◆ colorized_body_stream_
| boost::optional<astra_colorizedbodystream_t> astra_ros::Device::colorized_body_stream_ |
|
private |
◆ configuration_
◆ depth_stream_
| boost::optional<astra_depthstream_t> astra_ros::Device::depth_stream_ |
|
private |
◆ hand_stream_
| boost::optional<astra_handstream_t> astra_ros::Device::hand_stream_ |
|
private |
◆ ir_stream_
| boost::optional<astra_infraredstream_t> astra_ros::Device::ir_stream_ |
|
private |
◆ masked_color_stream_
| boost::optional<astra_maskedcolorstream_t> astra_ros::Device::masked_color_stream_ |
|
private |
◆ point_stream_
| boost::optional<astra_pointstream_t> astra_ros::Device::point_stream_ |
|
private |
◆ reader_
| astra_reader_t astra_ros::Device::reader_ |
|
private |
◆ stream_set_
| astra_streamsetconnection_t astra_ros::Device::stream_set_ |
|
private |
The documentation for this class was generated from the following files: