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

[Bug] Can't set reliability of publisher and subscriber #348

Open
nullbyto opened this issue Dec 22, 2024 · 3 comments
Open

[Bug] Can't set reliability of publisher and subscriber #348

nullbyto opened this issue Dec 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@nullbyto
Copy link

nullbyto commented Dec 22, 2024

Describe the bug

I am not able to set the reliability of the publisher or subscriber. I define

zenoh::Session::PublisherOptions p_ops_;

, when I try to set the reliability I get the error message:

error: ‘struct zenoh::Session::PublisherOptions’ has no member named ‘reliability’
   27 |         p_ops_.reliability = Reliability::Z_RELIABILITY_BEST_EFFORT;

even in the docs reliability should be a field.
I have tried to:

#define Z_FEATURE_UNSTABLE_API

then the project fails due to many other errors:

/usr/local/include/zenoh_commons.h:455:3: error: ‘zc_owned_concurrent_close_handle_tdoes not name a type
  455 |   zc_owned_concurrent_close_handle_t *internal_out_concurrent;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:759:3: error: ‘z_moved_source_info_tdoes not name a type; did you meanz_moved_string_t’?
  759 |   z_moved_source_info_t *source_info;
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   z_moved_string_t
/usr/local/include/zenoh_commons.h:843:3: error: ‘z_moved_source_info_tdoes not name a type; did you meanz_moved_string_t’?
  843 |   z_moved_source_info_t *source_info;
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   z_moved_string_t
/usr/local/include/zenoh_commons.h:896:3: error: ‘z_moved_source_info_tdoes not name a type; did you meanz_moved_string_t’?
  896 |   z_moved_source_info_t *source_info;
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   z_moved_string_t
/usr/local/include/zenoh_commons.h:923:3: error: ‘z_moved_source_info_tdoes not name a type; did you meanz_moved_string_t’?
  923 |   z_moved_source_info_t *source_info;
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   z_moved_string_t
/usr/local/include/zenoh_commons.h:965:3: error: ‘z_moved_source_info_tdoes not name a type; did you meanz_moved_string_t’?
  965 |   z_moved_source_info_t *source_info;
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   z_moved_string_t
/usr/local/include/zenoh_commons.h:999:3: error: ‘z_moved_source_info_tdoes not name a type; did you meanz_moved_string_t’?
  999 |   z_moved_source_info_t *source_info;
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   z_moved_string_t
/usr/local/include/zenoh_commons.h:2073:30: error: ‘z_owned_querier_thas not been declared
 2073 |                              z_owned_querier_t *querier,
      |                              ^~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:2531:39: error: ‘z_entity_global_id_tdoes not name a type
 2531 | uint32_t z_entity_global_id_eid(const z_entity_global_id_t *this_);
      |                                       ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:2539:44: error: ‘z_entity_global_id_tdoes not name a type
 2539 | struct z_id_t z_entity_global_id_zid(const z_entity_global_id_t *this_);
      |                                            ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:2924:37: error: ‘z_owned_querier_tdoes not name a type; did you meanz_owned_query_t’?
 2924 | bool z_internal_querier_check(const z_owned_querier_t *this_);
      |                                     ^~~~~~~~~~~~~~~~~
      |                                     z_owned_query_t
/usr/local/include/zenoh_commons.h:2932:6: error: variable or fieldz_internal_querier_nulldeclared void
 2932 | void z_internal_querier_null(z_owned_querier_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:2932:30: error: ‘z_owned_querier_twas not declared in this scope; did you meanz_owned_query_t’?
 2932 | void z_internal_querier_null(z_owned_querier_t *this_);
      |                              ^~~~~~~~~~~~~~~~~
      |                              z_owned_query_t
/usr/local/include/zenoh_commons.h:2932:49: error: ‘this_was not declared in this scope
 2932 | void z_internal_querier_null(z_owned_querier_t *this_);
      |                                                 ^~~~~
/usr/local/include/zenoh_commons.h:3103:41: error: ‘z_owned_source_info_tdoes not name a type; did you meanz_owned_string_t’?
 3103 | bool z_internal_source_info_check(const z_owned_source_info_t *this_);
      |                                         ^~~~~~~~~~~~~~~~~~~~~
      |                                         z_owned_string_t
/usr/local/include/zenoh_commons.h:3111:6: error: variable or fieldz_internal_source_info_nulldeclared void
 3111 | void z_internal_source_info_null(z_owned_source_info_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:3111:34: error: ‘z_owned_source_info_twas not declared in this scope; did you meanz_owned_string_t’?
 3111 | void z_internal_source_info_null(z_owned_source_info_t *this_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~
      |                                  z_owned_string_t
/usr/local/include/zenoh_commons.h:3111:57: error: ‘this_was not declared in this scope
 3111 | void z_internal_source_info_null(z_owned_source_info_t *this_);
      |                                                         ^~~~~
/usr/local/include/zenoh_commons.h:3488:1: error: ‘z_entity_global_id_tdoes not name a type
 3488 | z_entity_global_id_t z_publisher_id(const struct z_loaned_publisher_t *publisher);
      | ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:3554:6: error: variable or fieldz_querier_dropdeclared void
 3554 | void z_querier_drop(z_moved_querier_t *this_);
      |      ^~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:3554:21: error: ‘z_moved_querier_twas not declared in this scope; did you meanz_moved_query_t’?
 3554 | void z_querier_drop(z_moved_querier_t *this_);
      |                     ^~~~~~~~~~~~~~~~~
      |                     z_moved_query_t
/usr/local/include/zenoh_commons.h:3554:40: error: ‘this_was not declared in this scope
 3554 | void z_querier_drop(z_moved_querier_t *this_);
      |                                        ^~~~~
/usr/local/include/zenoh_commons.h:3570:32: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 3570 | z_result_t z_querier_get(const z_loaned_querier_t *querier,
      |                                ^~~~~~~~~~~~~~~~~~
      |                                z_loaned_query_t
/usr/local/include/zenoh_commons.h:3589:1: error: ‘z_entity_global_id_tdoes not name a type
 3589 | z_entity_global_id_t z_querier_id(const z_loaned_querier_t *querier);
      | ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:3597:58: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 3597 | const struct z_loaned_keyexpr_t *z_querier_keyexpr(const z_loaned_querier_t *querier);
      |                                                          ^~~~~~~~~~~~~~~~~~
      |                                                          z_loaned_query_t
/usr/local/include/zenoh_commons.h:3605:7: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 3605 | const z_loaned_querier_t *z_querier_loan(const z_owned_querier_t *this_);
      |       ^~~~~~~~~~~~~~~~~~
      |       z_loaned_query_t
/usr/local/include/zenoh_commons.h:3613:1: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 3613 | z_loaned_querier_t *z_querier_loan_mut(z_owned_querier_t *this_);
      | ^~~~~~~~~~~~~~~~~~
      | z_loaned_query_t
/usr/local/include/zenoh_commons.h:3785:1: error: ‘z_entity_global_id_tdoes not name a type
 3785 | z_entity_global_id_t z_queryable_id(const struct z_loaned_queryable_t *queryable);
      | ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:4054:7: error: ‘z_loaned_source_info_tdoes not name a type; did you meanz_loaned_string_t’?
 4054 | const z_loaned_source_info_t *z_sample_source_info(const struct z_loaned_sample_t *this_);
      |       ^~~~~~~~~~~~~~~~~~~~~~
      |       z_loaned_string_t
/usr/local/include/zenoh_commons.h:4508:6: error: variable or fieldz_source_info_dropdeclared void
 4508 | void z_source_info_drop(z_moved_source_info_t *this_);
      |      ^~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:4508:25: error: ‘z_moved_source_info_twas not declared in this scope; did you meanz_moved_string_t’?
 4508 | void z_source_info_drop(z_moved_source_info_t *this_);
      |                         ^~~~~~~~~~~~~~~~~~~~~
      |                         z_moved_string_t
/usr/local/include/zenoh_commons.h:4508:48: error: ‘this_was not declared in this scope
 4508 | void z_source_info_drop(z_moved_source_info_t *this_);
      |                                                ^~~~~
/usr/local/include/zenoh_commons.h:4516:1: error: ‘z_entity_global_id_tdoes not name a type
 4516 | z_entity_global_id_t z_source_info_id(const z_loaned_source_info_t *this_);
      | ^~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:4524:7: error: ‘z_loaned_source_info_tdoes not name a type; did you meanz_loaned_string_t’?
 4524 | const z_loaned_source_info_t *z_source_info_loan(const z_owned_source_info_t *this_);
      |       ^~~~~~~~~~~~~~~~~~~~~~
      |       z_loaned_string_t
/usr/local/include/zenoh_commons.h:4532:30: error: ‘z_owned_source_info_twas not declared in this scope; did you meanz_owned_string_t’?
 4532 | z_result_t z_source_info_new(z_owned_source_info_t *this_,
      |                              ^~~~~~~~~~~~~~~~~~~~~
      |                              z_owned_string_t
/usr/local/include/zenoh_commons.h:4532:53: error: ‘this_was not declared in this scope
 4532 | z_result_t z_source_info_new(z_owned_source_info_t *this_,
      |                                                     ^~~~~
/usr/local/include/zenoh_commons.h:4533:30: error: expected primary-expression beforeconst4533 |                              const z_entity_global_id_t *source_id,
      |                              ^~~~~
/usr/local/include/zenoh_commons.h:4534:39: error: expected primary-expression beforesource_sn4534 |                              uint32_t source_sn);
      |                                       ^~~~~~~~~
/usr/local/include/zenoh_commons.h:4534:48: error: expression list treated as compound expression in initializer [-fpermissive]
 4534 |                              uint32_t source_sn);
      |                                                ^
/usr/local/include/zenoh_commons.h:4542:33: error: ‘z_loaned_source_info_tdoes not name a type; did you meanz_loaned_string_t’?
 4542 | uint32_t z_source_info_sn(const z_loaned_source_info_t *this_);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
      |                                 z_loaned_string_t
/usr/local/include/zenoh_commons.h:4765:32: error: ‘z_moved_querier_twas not declared in this scope; did you meanz_moved_query_t’?
 4765 | z_result_t z_undeclare_querier(z_moved_querier_t *this_);
      |                                ^~~~~~~~~~~~~~~~~
      |                                z_moved_query_t
/usr/local/include/zenoh_commons.h:4765:51: error: ‘this_was not declared in this scope
 4765 | z_result_t z_undeclare_querier(z_moved_querier_t *this_);
      |                                                   ^~~~~
/usr/local/include/zenoh_commons.h:5034:17: error: variable or fieldzc_concurrent_close_handle_dropdeclared void
 5034 | ZENOHC_API void zc_concurrent_close_handle_drop(zc_moved_concurrent_close_handle_t *this_);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5034:49: error: ‘zc_moved_concurrent_close_handle_twas not declared in this scope
 5034 | ZENOHC_API void zc_concurrent_close_handle_drop(zc_moved_concurrent_close_handle_t *this_);
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5034:85: error: ‘this_was not declared in this scope
 5034 | ZENOHC_API void zc_concurrent_close_handle_drop(zc_moved_concurrent_close_handle_t *this_);
      |                                                                                     ^~~~~
/usr/local/include/zenoh_commons.h:5040:55: error: ‘zc_moved_concurrent_close_handle_twas not declared in this scope; did you meanzc_concurrent_close_handle_wait’?
 5040 | ZENOHC_API z_result_t zc_concurrent_close_handle_wait(zc_moved_concurrent_close_handle_t *handle);
      |                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       zc_concurrent_close_handle_wait
/usr/local/include/zenoh_commons.h:5040:91: error: ‘handlewas not declared in this scope
 5040 | ZENOHC_API z_result_t zc_concurrent_close_handle_wait(zc_moved_concurrent_close_handle_t *handle);
      |                                                                                           ^~~~~~
/usr/local/include/zenoh_commons.h:5157:54: error: ‘zc_owned_concurrent_close_handle_tdoes not name a type
 5157 | bool zc_internal_concurrent_close_handle_check(const zc_owned_concurrent_close_handle_t *this_);
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5163:17: error: variable or fieldzc_internal_concurrent_close_handle_nulldeclared void
 5163 | ZENOHC_API void zc_internal_concurrent_close_handle_null(zc_owned_concurrent_close_handle_t *this_);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5163:58: error: ‘zc_owned_concurrent_close_handle_twas not declared in this scope; did you meanzc_concurrent_close_handle_wait’?
 5163 | ZENOHC_API void zc_internal_concurrent_close_handle_null(zc_owned_concurrent_close_handle_t *this_);
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                          zc_concurrent_close_handle_wait
/usr/local/include/zenoh_commons.h:5163:94: error: ‘this_was not declared in this scope
 5163 | ZENOHC_API void zc_internal_concurrent_close_handle_null(zc_owned_concurrent_close_handle_t *this_);
      |                                                                                              ^~~~~
/usr/local/include/zenoh_commons.h:5171:48: error: ‘zc_owned_matching_listener_tdoes not name a type
 5171 | bool zc_internal_matching_listener_check(const zc_owned_matching_listener_t *this_);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5179:6: error: variable or fieldzc_internal_matching_listener_nulldeclared void
 5179 | void zc_internal_matching_listener_null(zc_owned_matching_listener_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5179:41: error: ‘zc_owned_matching_listener_twas not declared in this scope
 5179 | void zc_internal_matching_listener_null(zc_owned_matching_listener_t *this_);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5179:71: error: ‘this_was not declared in this scope
 5179 | void zc_internal_matching_listener_null(zc_owned_matching_listener_t *this_);
      |                                                                       ^~~~~
/usr/local/include/zenoh_commons.h:5229:6: error: variable or fieldzc_matching_listener_dropdeclared void
 5229 | void zc_matching_listener_drop(zc_moved_matching_listener_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5229:32: error: ‘zc_moved_matching_listener_twas not declared in this scope
 5229 | void zc_matching_listener_drop(zc_moved_matching_listener_t *this_);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5229:62: error: ‘this_was not declared in this scope
 5229 | void zc_matching_listener_drop(zc_moved_matching_listener_t *this_);
      |                                                              ^~~~~
/usr/local/include/zenoh_commons.h:5259:51: error: ‘zc_owned_matching_listener_thas not been declared
 5259 |                                                   zc_owned_matching_listener_t *matching_listener,
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5285:66: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 5285 | z_result_t zc_querier_declare_background_matching_listener(const z_loaned_querier_t *querier,
      |                                                                  ^~~~~~~~~~~~~~~~~~
      |                                                                  z_loaned_query_t
/usr/local/include/zenoh_commons.h:5300:55: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 5300 | z_result_t zc_querier_declare_matching_listener(const z_loaned_querier_t *querier,
      |                                                       ^~~~~~~~~~~~~~~~~~
      |                                                       z_loaned_query_t
/usr/local/include/zenoh_commons.h:5301:49: error: ‘zc_owned_matching_listener_thas not been declared
 5301 |                                                 zc_owned_matching_listener_t *matching_listener,
      |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5312:49: error: ‘z_loaned_querier_tdoes not name a type; did you meanz_loaned_query_t’?
 5312 | z_result_t zc_querier_get_matching_status(const z_loaned_querier_t *this_,
      |                                                 ^~~~~~~~~~~~~~~~~~
      |                                                 z_loaned_query_t
/usr/local/include/zenoh_commons.h:5389:43: error: ‘zc_moved_matching_listener_twas not declared in this scope; did you meanzc_undeclare_matching_listener’?
 5389 | z_result_t zc_undeclare_matching_listener(zc_moved_matching_listener_t *this_);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           zc_undeclare_matching_listener
/usr/local/include/zenoh_commons.h:5389:73: error: ‘this_was not declared in this scope
 5389 | z_result_t zc_undeclare_matching_listener(zc_moved_matching_listener_t *this_);
      |                                                                         ^~~~~
/usr/local/include/zenoh_commons.h:5440:41: error: ‘ze_owned_publication_cache_thas not been declared
 5440 |                                         ze_owned_publication_cache_t *pub_cache,
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5459:43: error: ‘ze_owned_querying_subscriber_thas not been declared
 5459 |                                           ze_owned_querying_subscriber_t *querying_subscriber,
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5643:48: error: ‘ze_owned_publication_cache_tdoes not name a type
 5643 | bool ze_internal_publication_cache_check(const ze_owned_publication_cache_t *this_);
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5651:6: error: variable or fieldze_internal_publication_cache_nulldeclared void
 5651 | void ze_internal_publication_cache_null(ze_owned_publication_cache_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5651:41: error: ‘ze_owned_publication_cache_twas not declared in this scope; did you meanze_declare_publication_cache’?
 5651 | void ze_internal_publication_cache_null(ze_owned_publication_cache_t *this_);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                         ze_declare_publication_cache
/usr/local/include/zenoh_commons.h:5651:71: error: ‘this_was not declared in this scope
 5651 | void ze_internal_publication_cache_null(ze_owned_publication_cache_t *this_);
      |                                                                       ^~~~~
/usr/local/include/zenoh_commons.h:5659:50: error: ‘ze_owned_querying_subscriber_tdoes not name a type; did you meanz_owned_subscriber_t’?
 5659 | bool ze_internal_querying_subscriber_check(const ze_owned_querying_subscriber_t *this_);
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                  z_owned_subscriber_t
/usr/local/include/zenoh_commons.h:5665:17: error: variable or fieldze_internal_querying_subscriber_nulldeclared void
 5665 | ZENOHC_API void ze_internal_querying_subscriber_null(ze_owned_querying_subscriber_t *this_);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5665:54: error: ‘ze_owned_querying_subscriber_twas not declared in this scope; did you meanze_declare_querying_subscriber’?
 5665 | ZENOHC_API void ze_internal_querying_subscriber_null(ze_owned_querying_subscriber_t *this_);
      |                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                      ze_declare_querying_subscriber
/usr/local/include/zenoh_commons.h:5665:86: error: ‘this_was not declared in this scope
 5665 | ZENOHC_API void ze_internal_querying_subscriber_null(ze_owned_querying_subscriber_t *this_);
      |                                                                                      ^~~~~
/usr/local/include/zenoh_commons.h:5682:6: error: variable or fieldze_publication_cache_dropdeclared void
 5682 | void ze_publication_cache_drop(ze_moved_publication_cache_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5682:32: error: ‘ze_moved_publication_cache_twas not declared in this scope; did you meanze_declare_publication_cache’?
 5682 | void ze_publication_cache_drop(ze_moved_publication_cache_t *this_);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                ze_declare_publication_cache
/usr/local/include/zenoh_commons.h:5682:62: error: ‘this_was not declared in this scope
 5682 | void ze_publication_cache_drop(ze_moved_publication_cache_t *this_);
      |                                                              ^~~~~
/usr/local/include/zenoh_commons.h:5690:69: error: ‘ze_loaned_publication_cache_tdoes not name a type
 5690 | const struct z_loaned_keyexpr_t *ze_publication_cache_keyexpr(const ze_loaned_publication_cache_t *this_);
      |                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5698:7: error: ‘ze_loaned_publication_cache_tdoes not name a type
 5698 | const ze_loaned_publication_cache_t *ze_publication_cache_loan(const ze_owned_publication_cache_t *this_);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5715:6: error: variable or fieldze_querying_subscriber_dropdeclared void
 5715 | void ze_querying_subscriber_drop(ze_moved_querying_subscriber_t *this_);
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/zenoh_commons.h:5715:34: error: ‘ze_moved_querying_subscriber_twas not declared in this scope; did you meanze_declare_querying_subscriber’?
 5715 | void ze_querying_subscriber_drop(ze_moved_querying_subscriber_t *this_);
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                  ze_declare_querying_subscriber
/usr/local/include/zenoh_commons.h:5715:66: error: ‘this_was not declared in this scope
 5715 | void ze_querying_subscriber_drop(ze_moved_querying_subscriber_t *this_);
      |                                                                  ^~~~~
/usr/local/include/zenoh_commons.h:5725:45: error: ‘ze_loaned_querying_subscriber_tdoes not name a type; did you meanz_loaned_subscriber_t’?
 5725 | z_result_t ze_querying_subscriber_get(const ze_loaned_querying_subscriber_t *this_,
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                             z_loaned_subscriber_t
/usr/local/include/zenoh_commons.h:5735:7: error: ‘ze_loaned_querying_subscriber_tdoes not name a type; did you meanz_loaned_subscriber_t’?
 5735 | const ze_loaned_querying_subscriber_t *ze_querying_subscriber_loan(const ze_owned_querying_subscriber_t *this_);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |       z_loaned_subscriber_t
/usr/local/include/zenoh_commons.h:5980:43: error: ‘ze_moved_publication_cache_twas not declared in this scope; did you meanze_declare_publication_cache’?
 5980 | z_result_t ze_undeclare_publication_cache(ze_moved_publication_cache_t *this_);
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                           ze_declare_publication_cache
/usr/local/include/zenoh_commons.h:5980:73: error: ‘this_was not declared in this scope
 5980 | z_result_t ze_undeclare_publication_cache(ze_moved_publication_cache_t *this_);
      |                                                                         ^~~~~
/usr/local/include/zenoh_commons.h:5990:45: error: ‘ze_moved_querying_subscriber_twas not declared in this scope; did you meanze_querying_subscriber_get’?
 5990 | z_result_t ze_undeclare_querying_subscriber(ze_moved_querying_subscriber_t *this_);
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                             ze_querying_subscriber_get
/usr/local/include/zenoh_commons.h:5990:77: error: ‘this_was not declared in this scope
.
.
.
.

I am not sure if there is another way to set the reliability of publishers and subscribers, or if I am doing something wrong.

To reproduce

  1. Build project
  2. Get error

System info

  • Zenoh version 1.1.0

Edit

Corrected the error description from SubscriberOptions to PublisherOptions, since SubscriberOptions has actually no reliability field.

@nullbyto nullbyto added the bug Something isn't working label Dec 22, 2024
@YuanYuYuan
Copy link
Contributor

Hi @nullbyto! This is expected, as the publisher is the only one responsible for setting the reliability.

@nullbyto
Copy link
Author

Hi @nullbyto! This is expected, as the publisher is the only one responsible for setting the reliability.

Hi, thanks for your reply, i get the same when setting the PublisherOptions:

error: ‘struct zenoh::Session::PublisherOptions’ has no member named ‘reliability’
   27 |         p_ops_.reliability = zenoh::Reliability::Z_RELIABILITY_BEST_EFFORT;

@YuanYuYuan
Copy link
Contributor

Oh, you need to build zenoh-c with unstable feature so that you can configure the QoS. Check here to learn how to build zenoh-c and then rebuild the zenoh-cpp. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants