31#include <rclcpp/rclcpp.hpp>
32#include <std_srvs/srv/trigger.hpp>
35using namespace rclcpp;
50 std::shared_ptr<Node> node_;
52 std::atomic_bool enabled_;
53 std::string topic_prefix_;
55 std::shared_ptr<Client<std_srvs::srv::Trigger>> service_client_start_simulation_;
56 std::shared_ptr<Client<std_srvs::srv::Trigger>> service_client_stop_simulation_;
69 const std::string topic_prefix=
"GET_FROM_NODE");
Definition sas_object.hpp:39
Client for controlling a simulator via ROS services.
Definition sas_simulator_client.hpp:48
bool is_enabled() const
Query whether the client is enabled.
Definition sas_simulator_client.cpp:62
bool stop_simulation()
Call the stop simulation service.
Definition sas_simulator_client.cpp:55
std::string get_topic_prefix() const
Get the configured topic/service prefix.
Definition sas_simulator_client.cpp:68
bool start_simulation()
Call the start simulation service.
Definition sas_simulator_client.cpp:48
Base object class for identification and license utilities.