Class PlayerServiceClient
Defined in File player_service_client.hpp
Class Documentation
-
class PlayerServiceClient
Public Types
-
using ServiceEventType = service_msgs::msg::ServiceEventInfo::_event_type_type
-
using ClientGidType = service_msgs::msg::ServiceEventInfo::_client_gid_type
Public Functions
-
const std::string &get_service_name()
-
std::shared_ptr<uint8_t[]> deserialize_service_event(const rcl_serialized_message_t &message)
Deserialize message to the type erased service event.
- Parameters:
message – - Serialized message
- Returns:
Shared pointer to the byte array with deserialized service event if success, otherwise nullptr
-
bool wait_for_sent_requests_to_finish(std::chrono::duration<double> timeout = std::chrono::seconds(5))
Wait until sent service requests will receive responses from service servers.
- Parameters:
timeout – - Timeout in fraction of seconds to wait for.
- Returns:
true if service requests successfully finished, otherwise false.
-
inline std::shared_ptr<rclcpp::GenericClient> generic_client()
-
using ServiceEventType = service_msgs::msg::ServiceEventInfo::_event_type_type