usb_cam::UsbCamNode
Inherits from rclcpp::Node
Public Functions
Name | |
---|---|
~UsbCamNode() | |
void | update() |
bool | take_and_send_image_mjpeg() |
bool | take_and_send_image() |
void | set_v4l2_params() |
void | service_capture(const std::shared_ptr< rmw_request_id_t > request_header, const std::shared_ptr< std_srvs::srv::SetBool::Request > request, std::shared_ptr< std_srvs::srv::SetBool::Response > response) |
rcl_interfaces::msg::SetParametersResult | parameters_callback(const std::vector< rclcpp::Parameter > & parameters) |
void | init() |
void | get_params() |
void | assign_params(const std::vector< rclcpp::Parameter > & parameters) |
UsbCamNode(const rclcpp::NodeOptions & node_options) |
Public Attributes
Name | |
---|---|
rclcpp::TimerBase::SharedPtr | m_timer |
rclcpp::Service< std_srvs::srv::SetBool >::SharedPtr | m_service_capture |
rclcpp::node_interfaces::OnSetParametersCallbackHandle::SharedPtr | m_parameters_callback_handle |
parameters_t | m_parameters |
std::shared_ptr< image_transport::CameraPublisher > | m_image_publisher |
sensor_msgs::msg::Image::UniquePtr | m_image_msg |
sensor_msgs::msg::CompressedImage::UniquePtr | m_compressed_img_msg |
rclcpp::Publisher< sensor_msgs::msg::CompressedImage >::SharedPtr | m_compressed_image_publisher |
rclcpp::Publisher< sensor_msgs::msg::CameraInfo >::SharedPtr | m_compressed_cam_info_publisher |
sensor_msgs::msg::CameraInfo::SharedPtr | m_camera_info_msg |
std::shared_ptr< camera_info_manager::CameraInfoManager > | m_camera_info |
UsbCam * | m_camera |
Public Functions Documentation
function ~UsbCamNode
~UsbCamNode()
function update
void update()
function take_and_send_image_mjpeg
bool take_and_send_image_mjpeg()
function take_and_send_image
bool take_and_send_image()
function set_v4l2_params
void set_v4l2_params()
function service_capture
void service_capture(
const std::shared_ptr< rmw_request_id_t > request_header,
const std::shared_ptr< std_srvs::srv::SetBool::Request > request,
std::shared_ptr< std_srvs::srv::SetBool::Response > response
)
function parameters_callback
rcl_interfaces::msg::SetParametersResult parameters_callback(
const std::vector< rclcpp::Parameter > & parameters
)
function init
void init()
function get_params
void get_params()
function assign_params
void assign_params(
const std::vector< rclcpp::Parameter > & parameters
)
function UsbCamNode
explicit UsbCamNode(
const rclcpp::NodeOptions & node_options
)
Public Attributes Documentation
variable m_timer
rclcpp::TimerBase::SharedPtr m_timer;
variable m_service_capture
rclcpp::Service< std_srvs::srv::SetBool >::SharedPtr m_service_capture;
variable m_parameters_callback_handle
rclcpp::node_interfaces::OnSetParametersCallbackHandle::SharedPtr m_parameters_callback_handle;
variable m_parameters
parameters_t m_parameters;
variable m_image_publisher
std::shared_ptr< image_transport::CameraPublisher > m_image_publisher;
variable m_image_msg
sensor_msgs::msg::Image::UniquePtr m_image_msg;
variable m_compressed_img_msg
sensor_msgs::msg::CompressedImage::UniquePtr m_compressed_img_msg;
variable m_compressed_image_publisher
rclcpp::Publisher< sensor_msgs::msg::CompressedImage >::SharedPtr m_compressed_image_publisher;
variable m_compressed_cam_info_publisher
rclcpp::Publisher< sensor_msgs::msg::CameraInfo >::SharedPtr m_compressed_cam_info_publisher;
variable m_camera_info_msg
sensor_msgs::msg::CameraInfo::SharedPtr m_camera_info_msg;
variable m_camera_info
std::shared_ptr< camera_info_manager::CameraInfoManager > m_camera_info;
variable m_camera
UsbCam * m_camera;
Updated on 2024-06-22 at 03:15:44 +0000