Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get/set/list/describe parameters (controls) #13624

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions third-party/realdds/include/realdds/dds-device-server.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class dds_device_server
dds_guid const & guid() const;
std::shared_ptr< dds_participant > participant() const;
std::shared_ptr< dds_subscriber > subscriber() const { return _subscriber; }
std::shared_ptr< dds_publisher > publisher() const { return _publisher; }
std::string const & topic_root() const { return _topic_root; }
rsutils::string::slice debug_name() const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class dds_stream_sensor_bridge
// Return true if the stream for the given server is currently streaming
bool is_streaming( std::shared_ptr< dds_stream_server > const & ) const;

// Return the profile a server is set to, even if not yet streaming
std::shared_ptr< dds_stream_profile > get_profile( std::shared_ptr< dds_stream_server > const & ) const;

// Notifications
public:
void on_readers_changed( readers_changed_callback callback ) { _on_readers_changed = std::move( callback ); }
Expand Down
13 changes: 13 additions & 0 deletions third-party/realdds/include/realdds/topics/dds-topic-names.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ constexpr char SEPARATOR = '/';
constexpr char const * ROOT = "realsense/";
constexpr size_t ROOT_LEN = 10;
// NOTE: actual streams will be ROS-compatible, meaning rt/ROOT
constexpr char const * ROS2_ROOT = "rt/";
constexpr char const * ROS2_SERVICE_REQUEST_ROOT = "rq/";
constexpr char const * ROS2_SERVICE_RESPONSE_ROOT = "rr/";

constexpr size_t ROS2_ROOT_LEN = 3;

constexpr char const * DEVICE_INFO_TOPIC_NAME = "realsense/device-info";

Expand All @@ -25,6 +30,14 @@ constexpr char const * CONTROL_TOPIC_NAME = "/control";
constexpr char const * METADATA_TOPIC_NAME = "/metadata";
constexpr char const * DFU_TOPIC_NAME = "/dfu";

constexpr char const * GET_PARAMETERS_NAME = "/get_parameters";
constexpr char const * SET_PARAMETERS_NAME = "/set_parameters";
constexpr char const * LIST_PARAMETERS_NAME = "/list_parameters";
constexpr char const * DESCRIBE_PARAMETERS_NAME = "/describe_parameters";

constexpr char const * REQUEST_SUFFIX = "Request";
constexpr char const * RESPONSE_SUFFIX = "Reply";


namespace notification {
namespace key {
Expand Down
2 changes: 1 addition & 1 deletion third-party/realdds/include/realdds/topics/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The various topics are arranged hierarchically:

The code for each message type in this directory is generated from IDL files if the message format is defined by RealDDS.

For [ROS](#ros2), the IDLs are not available.
For [ROS](#ros2), the IDLs are available in the `/opt/ros/<distro>/share/` installation folder.

# Generation

Expand Down
Loading
Loading