@@ -49,7 +49,7 @@ struct RpcLibServerBase::impl {
4949 ~impl () {
5050 }
5151
52- void stop () {
52+ void stop () {
5353 server.close_sessions ();
5454 if (!is_async_) {
5555 // this deadlocks UI thread if async_run was called while there are pending rpc calls.
@@ -92,20 +92,20 @@ RpcLibServerBase::RpcLibServerBase(ApiProvider* api_provider, const std::string&
9292 pimpl_->server .bind (" getSettingsString" , [&]() -> std::string {
9393 return getWorldSimApi ()->getSettingsString ();
9494 });
95-
96- pimpl_->server .bind (" simPause" , [&](bool is_paused) -> void {
97- getWorldSimApi ()->pause (is_paused);
95+
96+ pimpl_->server .bind (" simPause" , [&](bool is_paused) -> void {
97+ getWorldSimApi ()->pause (is_paused);
9898 });
99- pimpl_->server .bind (" simIsPaused" , [&]() -> bool {
100- return getWorldSimApi ()->isPaused ();
99+ pimpl_->server .bind (" simIsPaused" , [&]() -> bool {
100+ return getWorldSimApi ()->isPaused ();
101101 });
102- pimpl_->server .bind (" simContinueForTime" , [&](double seconds) -> void {
103- getWorldSimApi ()->continueForTime (seconds);
102+ pimpl_->server .bind (" simContinueForTime" , [&](double seconds) -> void {
103+ getWorldSimApi ()->continueForTime (seconds);
104104 });
105105
106- pimpl_->server .bind (" simSetTimeOfDay" , [&](bool is_enabled, const string& start_datetime, bool is_start_datetime_dst,
106+ pimpl_->server .bind (" simSetTimeOfDay" , [&](bool is_enabled, const string& start_datetime, bool is_start_datetime_dst,
107107 float celestial_clock_speed, float update_interval_secs, bool move_sun) -> void {
108- getWorldSimApi ()->setTimeOfDay (is_enabled, start_datetime, is_start_datetime_dst,
108+ getWorldSimApi ()->setTimeOfDay (is_enabled, start_datetime, is_start_datetime_dst,
109109 celestial_clock_speed, update_interval_secs, move_sun);
110110 });
111111
@@ -116,13 +116,13 @@ RpcLibServerBase::RpcLibServerBase(ApiProvider* api_provider, const std::string&
116116 getWorldSimApi ()->setWeatherParameter (param, val);
117117 });
118118
119- pimpl_->server .bind (" enableApiControl" , [&](bool is_enabled, const std::string& vehicle_name) -> void {
119+ pimpl_->server .bind (" enableApiControl" , [&](bool is_enabled, const std::string& vehicle_name) -> void {
120120 getVehicleApi (vehicle_name)->enableApiControl (is_enabled);
121121 });
122- pimpl_->server .bind (" isApiControlEnabled" , [&](const std::string& vehicle_name) -> bool {
122+ pimpl_->server .bind (" isApiControlEnabled" , [&](const std::string& vehicle_name) -> bool {
123123 return getVehicleApi (vehicle_name)->isApiControlEnabled ();
124124 });
125- pimpl_->server .bind (" simGetImages" , [&](const std::vector<RpcLibAdapatorsBase::ImageRequest>& request_adapter, const std::string& vehicle_name) ->
125+ pimpl_->server .bind (" simGetImages" , [&](const std::vector<RpcLibAdapatorsBase::ImageRequest>& request_adapter, const std::string& vehicle_name) ->
126126 vector<RpcLibAdapatorsBase::ImageResponse> {
127127 const auto & response = getVehicleSimApi (vehicle_name)->getImages (RpcLibAdapatorsBase::ImageRequest::to (request_adapter));
128128 return RpcLibAdapatorsBase::ImageResponse::from (response);
@@ -170,7 +170,7 @@ RpcLibServerBase::RpcLibServerBase(ApiProvider* api_provider, const std::string&
170170 pimpl_->server .
171171 bind (" simGetSegmentationObjectID" , [&](const std::string& mesh_name) -> int {
172172 return getWorldSimApi ()->getSegmentationObjectID (mesh_name);
173- });
173+ });
174174
175175 pimpl_->server .bind (" reset" , [&]() -> void {
176176 // Exit if already resetting.
@@ -231,7 +231,7 @@ RpcLibServerBase::RpcLibServerBase(ApiProvider* api_provider, const std::string&
231231 return RpcLibAdapatorsBase::CameraInfo (camera_info);
232232 });
233233
234- pimpl_->server .bind (" simSetCameraOrientation" , [&](const std::string& camera_name, const RpcLibAdapatorsBase::Quaternionr& orientation,
234+ pimpl_->server .bind (" simSetCameraOrientation" , [&](const std::string& camera_name, const RpcLibAdapatorsBase::Quaternionr& orientation,
235235 const std::string& vehicle_name) -> void {
236236 getVehicleSimApi (vehicle_name)->setCameraOrientation (camera_name, orientation.to ());
237237 });
@@ -242,7 +242,7 @@ RpcLibServerBase::RpcLibServerBase(ApiProvider* api_provider, const std::string&
242242 });
243243
244244 pimpl_->server .bind (" simGetCollisionInfo" , [&](const std::string& vehicle_name) -> RpcLibAdapatorsBase::CollisionInfo {
245- const auto & collision_info = getVehicleSimApi (vehicle_name)->getCollisionInfo ();
245+ const auto & collision_info = getVehicleSimApi (vehicle_name)->getCollisionInfo ();
246246 return RpcLibAdapatorsBase::CollisionInfo (collision_info);
247247 });
248248
@@ -251,7 +251,7 @@ RpcLibServerBase::RpcLibServerBase(ApiProvider* api_provider, const std::string&
251251 });
252252
253253 pimpl_->server .bind (" simGetObjectPose" , [&](const std::string& object_name) -> RpcLibAdapatorsBase::Pose {
254- const auto & pose = getWorldSimApi ()->getObjectPose (object_name);
254+ const auto & pose = getWorldSimApi ()->getObjectPose (object_name);
255255 return RpcLibAdapatorsBase::Pose (pose);
256256 });
257257 pimpl_->server .bind (" simSetObjectPose" , [&](const std::string& object_name, const RpcLibAdapatorsBase::Pose& pose, bool teleport) -> bool {
0 commit comments