Go to the documentation of this file. 1 #ifndef _ASTRA_ROS_DEVICE_HPP_
2 #define _ASTRA_ROS_DEVICE_HPP_
8 #include <boost/optional.hpp>
12 #include <astra/capi/astra.h>
24 typedef std::shared_ptr<Device>
Ptr;
25 typedef std::shared_ptr<const Device>
ConstPtr;
36 boost::optional<std::uint32_t>
width;
41 boost::optional<std::uint32_t>
height;
51 boost::optional<std::uint8_t>
fps;
145 boost::optional<Ir>
ir;
322 boost::optional<std::string>
uri;
431 boost::optional<std::uint32_t>
getChipId()
const;
474 Device(
const Configuration &configuration);
476 bool onStreamStartedChange(astra_streamconnection_t stream,
const bool &started,
const bool &started_prev);
478 bool onDepthD2CModeChange(astra_depthstream_t stream,
const int &d2c_mode,
const bool &prev_d2c_mode);
479 bool onBodyOrientationChange(astra_bodystream_t body_stream,
const astra_body_orientation_t &orientation,
const astra_skeleton_optimization_t &prev_orientation);
480 bool onBodySkeletonOptimizationChange(astra_bodystream_t body_stream,
const astra_skeleton_optimization_t &optimization,
const astra_skeleton_optimization_t &prev_optimization);
481 bool onBodySkeletonProfileChange(astra_bodystream_t body_stream,
const astra_skeleton_profile_t &profile,
const astra_skeleton_profile_t &prev_profile);
482 bool onModeChange(astra_streamconnection_t stream,
const ImageStreamMode &mode,
const ImageStreamMode &prev_mode);
483 bool onMirroredChange(astra_streamconnection_t stream,
const bool &mirrored,
const bool &prev_mirrored);
std::shared_ptr< Device > Ptr
astra_image_metadata_t metadata
boost::optional< SkeletonProfile > skeleton_profile
boost::optional< std::vector< ImageStreamMode > > getColorImageStreamModes() const
Parameter< std::int32_t > Gain
boost::optional< BodyOrientation > body_orientation
std::ostream & operator<<(std::ostream &o, const astra_ros::Device::Configuration::ColorStream &value)
boost::optional< DepthStream > depth_stream
Parameter< bool > Registration
boost::optional< Mirrored > mirrored
boost::optional< astra_usb_info_t > getColorUsbInfo() const
astra_rgba_pixel_t * data
std::vector< ImageStreamMode > getImageStreamModes(astra_streamconnection_t stream) const
orbbec_camera_params getCameraParameters() const
std::uint32_t data_length
astra_rgba_pixel_t * data
astra_image_metadata_t metadata
boost::optional< astra_usb_info_t > getIrUsbInfo() const
std::uint32_t data_length
std::uint32_t data_length
boost::optional< BodyFeatures > default_body_features
bool onModeChange(astra_streamconnection_t stream, const ImageStreamMode &mode, const ImageStreamMode &prev_mode)
const Configuration & getConfiguration() const noexcept
boost::optional< MaskedColor > masked_color
astra_image_metadata_t metadata
boost::optional< astra_colorizedbodystream_t > colorized_body_stream_
Parameter< astra_body_orientation_t > BodyOrientation
bool onBodySkeletonOptimizationChange(astra_bodystream_t body_stream, const astra_skeleton_optimization_t &optimization, const astra_skeleton_optimization_t &prev_optimization)
Parameter< bool > Running
boost::optional< std::uint8_t > fps
astra_floor_info_t * floor_info
boost::optional< Point > point
boost::optional< astra_handstream_t > hand_stream_
Parameter< ImageStreamMode > Mode
boost::optional< Mirrored > mirrored
boost::optional< std::string > license
boost::optional< MaskedColorStream > masked_color_stream
std::shared_ptr< const Device > ConstPtr
static Ptr open(const Configuration &configuration)
bool onStreamStartedChange(astra_streamconnection_t stream, const bool &started, const bool &started_prev)
std::uint32_t data_length
boost::optional< std::vector< ImageStreamMode > > getIrImageStreamModes() const
boost::optional< Mode > mode
std::uint32_t data_length
Parameter< bool > Mirrored
Parameter< bool > Mirrored
Parameter< bool > Running
bool onDepthD2CModeChange(astra_depthstream_t stream, const int &d2c_mode, const bool &prev_d2c_mode)
Parameter< std::int32_t > Exposure
std::uint32_t data_length
boost::optional< Registration > registration
Parameter< bool > Mirrored
Parameter< bool > Mirrored
astra_image_metadata_t metadata
boost::optional< ColorizedBody > colorized_body
boost::optional< Exposure > exposure
boost::optional< std::uint32_t > height
boost::optional< HandStream > hand_stream
Parameter< bool > Running
Parameter< bool > Running
boost::optional< Depth > depth
boost::optional< Mirrored > mirrored
Parameter< astra_body_tracking_feature_flags_t > BodyFeatures
Configuration configuration_
bool onDepthRegistrationChange(astra_depthstream_t stream, const bool ®istration, const bool &prev_registration)
boost::optional< astra_depthstream_t > depth_stream_
Represents a potential stream configuration.
boost::optional< astra_usb_info_t > getDepthUsbInfo() const
boost::optional< Hand > hand
boost::optional< std::vector< ImageStreamMode > > getDepthImageStreamModes() const
Parameter< bool > Running
boost::optional< BodyStream > body_stream
boost::optional< ColorizedBodyStream > colorized_body_stream
Device(const Configuration &configuration)
boost::optional< Mode > mode
std::function< void(const Frame &frame)> OnFrame
Configuration & getConfiguration() noexcept
Parameter< ImageStreamMode > Mode
Parameter< astra_skeleton_optimization_t > SkeletonOptimization
boost::optional< astra_pointstream_t > point_stream_
boost::optional< astra_maskedcolorstream_t > masked_color_stream_
boost::optional< std::uint32_t > width
boost::optional< D2CMode > d2c_mode
bool onMirroredChange(astra_streamconnection_t stream, const bool &mirrored, const bool &prev_mirrored)
boost::optional< Mode > mode
boost::optional< IrStream > ir_stream
Parameter< bool > Running
Parameter< ImageStreamMode > Mode
bool onBodyOrientationChange(astra_bodystream_t body_stream, const astra_body_orientation_t &orientation, const astra_skeleton_optimization_t &prev_orientation)
boost::optional< std::string > getSerialNumber() const
astra_image_metadata_t metadata
boost::optional< astra_bodystream_t > body_stream_
boost::optional< std::uint32_t > getChipId() const
boost::optional< astra_infraredstream_t > ir_stream_
boost::optional< std::string > uri
boost::optional< Body > body
Parameter< bool > Running
Parameter< bool > Running
boost::optional< ColorStream > color_stream
boost::optional< SkeletonOptimization > skeleton_optimization
boost::optional< astra_pixel_format_t > pixel_format
bool onBodySkeletonProfileChange(astra_bodystream_t body_stream, const astra_skeleton_profile_t &profile, const astra_skeleton_profile_t &prev_profile)
Parameter< astra_skeleton_profile_t > SkeletonProfile
astra_body_list_t body_list
An agnostic C++ wrapper for the C Astra SDK. This object is wrapped by RosDevice.
Parameter< bool > Mirrored
boost::optional< PointStream > point_stream
boost::optional< astra_colorstream_t > color_stream_
astra_streamsetconnection_t stream_set_
boost::optional< Gain > gain
astra_bodymask_t body_mask
boost::optional< Color > color
astra_ros
Author(s): Braden McDorman
autogenerated on Wed Mar 2 2022 00:53:06