Classes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ZividNodeTest Class Reference
Inheritance diagram for ZividNodeTest:
Inheritance graph
[legend]

Classes

class  SubscriptionWrapper
 

Protected Member Functions

template<class A , class B >
void assertArrayFloatEq (const A &actual, const B &expected) const
 
void assertCameraInfoForFileCamera (const sensor_msgs::CameraInfo &ci) const
 
void assertSensorMsgsImageContents (const sensor_msgs::Image &image, const Zivid::Array2D< Zivid::ColorRGBA > &expected_rgba)
 
void assertSensorMsgsImageMeta (const sensor_msgs::Image &image, std::size_t width, std::size_t height, std::size_t bytes_per_pixel, const std::string &encoding)
 
void assertSensorMsgsPointCloud2Meta (const sensor_msgs::PointCloud2 &point_cloud, std::size_t width, std::size_t height, std::size_t point_step)
 
void enableFirst2DAcquisition ()
 
void enableFirst3DAcquisition ()
 
void enableFirst3DAcquisitionAndCapture ()
 
template<class Type >
SubscriptionWrapper< Type > subscribe (const std::string &name)
 
void waitForReady ()
 
- Protected Member Functions inherited from ZividNodeTestBase
 ZividNodeTestBase ()
 

Protected Attributes

const ros::Duration dr_get_max_wait_duration { 5 }
 
ros::NodeHandle nh_
 
const ros::Duration node_ready_wait_duration { 15 }
 
const ros::Duration short_wait_duration { 0.25 }
 

Static Protected Attributes

static constexpr auto capture_2d_service_name = "/zivid_camera/capture_2d"
 
static constexpr auto capture_assistant_suggest_settings_service_name
 
static constexpr auto capture_service_name = "/zivid_camera/capture"
 
static constexpr auto color_camera_info_topic_name = "/zivid_camera/color/camera_info"
 
static constexpr auto color_image_color_topic_name = "/zivid_camera/color/image_color"
 
static constexpr auto depth_camera_info_topic_name = "/zivid_camera/depth/camera_info"
 
static constexpr auto depth_image_topic_name = "/zivid_camera/depth/image"
 
static constexpr auto file_camera_path = "/usr/share/Zivid/data/FileCameraZividOne.zfc"
 
static constexpr size_t num_dr_capture_servers = 10
 
static constexpr auto points_xyz_topic_name = "/zivid_camera/points/xyz"
 
static constexpr auto points_xyzrgba_topic_name = "/zivid_camera/points/xyzrgba"
 
static constexpr auto snr_camera_info_topic_name = "/zivid_camera/depth/camera_info"
 
static constexpr auto snr_image_topic_name = "/zivid_camera/snr/image"
 

Detailed Description

Definition at line 55 of file test_zivid_camera.cpp.

Member Function Documentation

template<class A , class B >
void ZividNodeTest::assertArrayFloatEq ( const A &  actual,
const B &  expected 
) const
inlineprotected

Definition at line 160 of file test_zivid_camera.cpp.

void ZividNodeTest::assertCameraInfoForFileCamera ( const sensor_msgs::CameraInfo &  ci) const
inlineprotected

Definition at line 208 of file test_zivid_camera.cpp.

void ZividNodeTest::assertSensorMsgsImageContents ( const sensor_msgs::Image &  image,
const Zivid::Array2D< Zivid::ColorRGBA > &  expected_rgba 
)
inlineprotected

Definition at line 191 of file test_zivid_camera.cpp.

void ZividNodeTest::assertSensorMsgsImageMeta ( const sensor_msgs::Image &  image,
std::size_t  width,
std::size_t  height,
std::size_t  bytes_per_pixel,
const std::string &  encoding 
)
inlineprotected

Definition at line 180 of file test_zivid_camera.cpp.

void ZividNodeTest::assertSensorMsgsPointCloud2Meta ( const sensor_msgs::PointCloud2 &  point_cloud,
std::size_t  width,
std::size_t  height,
std::size_t  point_step 
)
inlineprotected

Definition at line 169 of file test_zivid_camera.cpp.

void ZividNodeTest::enableFirst2DAcquisition ( )
inlineprotected

Definition at line 134 of file test_zivid_camera.cpp.

void ZividNodeTest::enableFirst3DAcquisition ( )
inlineprotected

Definition at line 124 of file test_zivid_camera.cpp.

void ZividNodeTest::enableFirst3DAcquisitionAndCapture ( )
inlineprotected

Definition at line 145 of file test_zivid_camera.cpp.

template<class Type >
SubscriptionWrapper<Type> ZividNodeTest::subscribe ( const std::string &  name)
inlineprotected

Definition at line 154 of file test_zivid_camera.cpp.

void ZividNodeTest::waitForReady ( )
inlineprotected

Definition at line 119 of file test_zivid_camera.cpp.

Member Data Documentation

constexpr auto ZividNodeTest::capture_2d_service_name = "/zivid_camera/capture_2d"
staticprotected

Definition at line 64 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::capture_assistant_suggest_settings_service_name
staticprotected
Initial value:
= "/zivid_camera/capture_assistant/"
"suggest_settings"

Definition at line 65 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::capture_service_name = "/zivid_camera/capture"
staticprotected

Definition at line 63 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::color_camera_info_topic_name = "/zivid_camera/color/camera_info"
staticprotected

Definition at line 67 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::color_image_color_topic_name = "/zivid_camera/color/image_color"
staticprotected

Definition at line 68 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::depth_camera_info_topic_name = "/zivid_camera/depth/camera_info"
staticprotected

Definition at line 69 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::depth_image_topic_name = "/zivid_camera/depth/image"
staticprotected

Definition at line 70 of file test_zivid_camera.cpp.

const ros::Duration ZividNodeTest::dr_get_max_wait_duration { 5 }
protected

Definition at line 62 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::file_camera_path = "/usr/share/Zivid/data/FileCameraZividOne.zfc"
staticprotected

Definition at line 76 of file test_zivid_camera.cpp.

ros::NodeHandle ZividNodeTest::nh_
protected

Definition at line 58 of file test_zivid_camera.cpp.

const ros::Duration ZividNodeTest::node_ready_wait_duration { 15 }
protected

Definition at line 60 of file test_zivid_camera.cpp.

constexpr size_t ZividNodeTest::num_dr_capture_servers = 10
staticprotected

Definition at line 75 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::points_xyz_topic_name = "/zivid_camera/points/xyz"
staticprotected

Definition at line 73 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::points_xyzrgba_topic_name = "/zivid_camera/points/xyzrgba"
staticprotected

Definition at line 74 of file test_zivid_camera.cpp.

const ros::Duration ZividNodeTest::short_wait_duration { 0.25 }
protected

Definition at line 61 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::snr_camera_info_topic_name = "/zivid_camera/depth/camera_info"
staticprotected

Definition at line 71 of file test_zivid_camera.cpp.

constexpr auto ZividNodeTest::snr_image_topic_name = "/zivid_camera/snr/image"
staticprotected

Definition at line 72 of file test_zivid_camera.cpp.


The documentation for this class was generated from the following file:


zivid_camera
Author(s): Zivid
autogenerated on Sat Apr 17 2021 02:51:05