RTI Connext Modern C++ API Version 7.4.0

The synchronous interface generated from the RobotControl IDL service. More...

#include <ServiceEndpoint.hpp>

Inheritance diagram for rpc_example::RobotControl:
rpc_example::RobotControlClient

Public Member Functions

virtual Coordinates walk_to (const Coordinates &destination, float speed)=0
 An IDL interface method defined in RobotControl. More...
 
virtual float get_speed ()=0
 An IDL interface method defined in RobotControl. More...
 
virtual ~RobotControl ()
 An empty virtual destructor. More...
 

Detailed Description

The synchronous interface generated from the RobotControl IDL service.

RobotControlClient implements this interface to make synchronous remote function calls.

Server-side applications must implement this interface to handle remote calls. To execute an implementation of this interface, create a RobotControlService.

Constructor & Destructor Documentation

◆ ~RobotControl()

virtual rpc_example::RobotControl::~RobotControl ( )
inlinevirtual

An empty virtual destructor.

Member Function Documentation

◆ walk_to()

virtual Coordinates rpc_example::RobotControl::walk_to ( const Coordinates &  destination,
float  speed 
)
pure virtual

An IDL interface method defined in RobotControl.

Parameters
destinationAn input argument
speedAn input argument
Returns
A return value
Exceptions
dds::core::PreconditionNotMetErrorif a Service hasn't been discovered. Make sure to call RobotControlClient::wait_for_service() before sending a request.
dds::core::TimeoutErrorif a reply is not received after the timeout specified in the ClientParams.
dds::rpc::RemoteUnknownOperationErrorif the remote operation doesn't exist.
user-defined-exceptionA user-defined exception (if any) when thrown on the server side.
standard-dds-exceptionOne of the standard DDS exceptions (Exceptions).

Note: the previous exceptions may be thrown on the client side.

◆ get_speed()

virtual float rpc_example::RobotControl::get_speed ( )
pure virtual

An IDL interface method defined in RobotControl.

Returns
The return value of this method
Exceptions
dds::core::PreconditionNotMetErrorif a Service hasn't been discovered. Make sure to call RobotControlClient::wait_for_service() before sending a request.
dds::core::TimeoutErrorif a reply is not received after the timeout specified in the ClientParams.
dds::rpc::RemoteUnknownOperationErrorif the remote operation doesn't exist.
user-defined-exceptionA user-defined exception (if any) when thrown on the server side.
standard-dds-exceptionOne of the standard DDS exceptions (Exceptions).

Note: the previous exceptions may be thrown on the client side.