Class CameraModule
Defined in File camera.hpp
Inheritance Relationships
Base Type
public rclcpp_lifecycle::LifecycleNode
Class Documentation
-
class CameraModule : public rclcpp_lifecycle::LifecycleNode
Public Types
-
using CameraShootSinglePhoto = psdk_interfaces::srv::CameraShootSinglePhoto
-
using CameraShootBurstPhoto = psdk_interfaces::srv::CameraShootBurstPhoto
-
using CameraShootIntervalPhoto = psdk_interfaces::srv::CameraShootIntervalPhoto
-
using CameraStopShootPhoto = psdk_interfaces::srv::CameraStopShootPhoto
-
using CameraRecordVideo = psdk_interfaces::srv::CameraRecordVideo
-
using CameraGetLaserRangingInfo = psdk_interfaces::srv::CameraGetLaserRangingInfo
-
using CameraGetFileListInfo = psdk_interfaces::srv::CameraGetFileListInfo
-
using CameraDownloadFileByIndex = psdk_interfaces::action::CameraDownloadFileByIndex
-
using CameraDeleteFileByIndex = psdk_interfaces::action::CameraDeleteFileByIndex
-
using CameraGetType = psdk_interfaces::srv::CameraGetType
-
using CameraSetExposureModeEV = psdk_interfaces::srv::CameraSetExposureModeEV
-
using CameraGetExposureModeEV = psdk_interfaces::srv::CameraGetExposureModeEV
-
using CameraSetShutterSpeed = psdk_interfaces::srv::CameraSetShutterSpeed
-
using CameraGetShutterSpeed = psdk_interfaces::srv::CameraGetShutterSpeed
-
using CameraSetISO = psdk_interfaces::srv::CameraSetISO
-
using CameraGetISO = psdk_interfaces::srv::CameraGetISO
-
using CameraSetFocusTarget = psdk_interfaces::srv::CameraSetFocusTarget
-
using CameraGetFocusTarget = psdk_interfaces::srv::CameraGetFocusTarget
-
using CameraSetFocusMode = psdk_interfaces::srv::CameraSetFocusMode
-
using CameraGetFocusMode = psdk_interfaces::srv::CameraGetFocusMode
-
using CameraSetOpticalZoom = psdk_interfaces::srv::CameraSetOpticalZoom
-
using CameraGetOpticalZoom = psdk_interfaces::srv::CameraGetOpticalZoom
-
using CameraSetInfraredZoom = psdk_interfaces::srv::CameraSetInfraredZoom
-
using CameraSetAperture = psdk_interfaces::srv::CameraSetAperture
-
using CameraGetAperture = psdk_interfaces::srv::CameraGetAperture
-
using CameraFormatSdCard = psdk_interfaces::srv::CameraFormatSdCard
-
using CameraGetSDStorageInfo = psdk_interfaces::srv::CameraGetSDStorageInfo
Public Functions
-
explicit CameraModule(const std::string &name)
Construct a new CameraModule object.
- Parameters:
node_name – Name of the node
-
~CameraModule()
Destroy the camera module object.
-
CallbackReturn on_configure(const rclcpp_lifecycle::State &state)
Configures the camera module. Creates the ROS 2 subscribers and services.
- Parameters:
state – rclcpp_lifecycle::State. Current state of the node.
- Returns:
CallbackReturn SUCCESS or FAILURE
-
CallbackReturn on_activate(const rclcpp_lifecycle::State &state)
Activates the camera module.
- Parameters:
state – rclcpp_lifecycle::State. Current state of the node.
- Returns:
CallbackReturn SUCCESS or FAILURE
-
CallbackReturn on_cleanup(const rclcpp_lifecycle::State &state)
Cleans the camera module. Resets the ROS 2 subscribers and services.
- Parameters:
state – rclcpp_lifecycle::State. Current state of the node.
- Returns:
CallbackReturn SUCCESS or FAILURE
-
CallbackReturn on_deactivate(const rclcpp_lifecycle::State &state)
Deactivates the camera module.
- Parameters:
state – rclcpp_lifecycle::State. Current state of the node.
- Returns:
CallbackReturn SUCCESS or FAILURE
-
CallbackReturn on_shutdown(const rclcpp_lifecycle::State &state)
Shuts down the camera module.
- Parameters:
state – rclcpp_lifecycle::State. Current state of the node.
- Returns:
CallbackReturn SUCCESS or FAILURE
-
bool init()
Initialize the camera module.
- Returns:
true/false
-
bool deinit()
Deinitialize the camera module.
- Returns:
true/false
-
inline E_DjiCameraType get_attached_camera_type()
Public Members
-
std::string default_path_to_download_media_ = {"/logs/media"}
-
using CameraShootSinglePhoto = psdk_interfaces::srv::CameraShootSinglePhoto