/workspaces/astro/sol3-sdk/cpp/sol3/camera_module/camera_msg_spec.h Source File

Space-ng SDK: /workspaces/astro/sol3-sdk/cpp/sol3/camera_module/camera_msg_spec.h Source File
Space-ng SDK
camera_msg_spec.h
Go to the documentation of this file.
1 // Copyright (c) Space-ng, inc. All rights reserved.
2 
3 #pragma once
4 #include "sol3/base_unit/msg/component_id.h"
5 #include "sol3/camera_module/msg/camera_control.h"
6 #include "sol3/camera_module/msg/camera_frame.h"
7 #include "sol3/camera_module/msg/video_encoded_packet.h"
9 
10 #include <cstdint>
11 
12 namespace sol3::camera_module {
17  using CameraControl =
19 
20  using RawFrame =
22 
23  using YuvFrame =
25 
28 
29  using VideoEncodedPacket = core::
30  MessageSpec<msg::VideoEncodedPacket, core::msg::InterfaceType_OUTPUT, 4>;
31 
36  static char constexpr const* camera_endpoint = "/run/sol3/camera";
41  static char constexpr const* control_endpoint = "/run/sol3/camera_control";
42 
44  static char constexpr const* camera_server_config_path =
45  "/opt/sol3/etc/camera_server/camera_server_config.json";
46 };
47 
48 bool isCameraComponent(uint32_t component_id);
49 uint32_t getCameraComponentId(uint32_t cam_id);
50 uint32_t getCameraId(uint32_t component_id);
51 
52 } // namespace sol3::camera_module
Definition: camera_component.h:8
uint32_t getCameraId(uint32_t component_id)
uint32_t getCameraComponentId(uint32_t cam_id)
bool isCameraComponent(uint32_t component_id)
Message specifications and endpoints for the camera module.
Definition: camera_msg_spec.h:14
static constexpr char const * camera_endpoint
Definition: camera_msg_spec.h:36
static constexpr char const * camera_server_config_path
The default path the the camera server configuration file.
Definition: camera_msg_spec.h:44
static constexpr char const * control_endpoint
Definition: camera_msg_spec.h:41
Compile time message type and id specification.
Definition: message_spec.h:15