Skip to content

Commit ad50965

Browse files
committed
chore: fix trailing whitespace
1 parent 573b667 commit ad50965

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

AirSim/AirLib/include/api/RpcLibClientBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class RpcLibClientBase {
6363
void simPlotLineStrip(const vector<Vector3r>& points, const vector<float>& color_rgba, float thickness, float duration, bool is_persistent);
6464
void simPlotLineList(const vector<Vector3r>& points, const vector<float>& color_rgba, float thickness, float duration, bool is_persistent);
6565
void simPlotArrows(const vector<Vector3r>& points_start, const vector<Vector3r>& points_end, const vector<float>& color_rgba, float thickness, float arrow_size, float duration, bool is_persistent);
66-
void simPlotStrings(const vector<std::string>& strings, const vector<Vector3r>& positions, float scale, const vector<float>& color_rgba, float duration);
66+
void simPlotStrings(const vector<std::string>& strings, const vector<Vector3r>& positions, float scale, const vector<float>& color_rgba, float duration);
6767
void simPlotTransforms(const vector<Pose>& poses, float scale, float thickness, float duration, bool is_persistent);
6868
void simPlotTransformsWithNames(const vector<Pose>& poses, const vector<std::string>& names, float tf_scale, float tf_thickness, float text_scale, const vector<float>& text_color_rgba, float duration);
6969

AirSim/AirLib/include/api/VehicleSimApiBase.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class VehicleSimApiBase : public msr::airlib::UpdatableObject {
2323
}
2424

2525
//this method is called at every render tick when we want to transfer state from
26-
//physics engine to render engine. As physics engine is halted while
26+
//physics engine to render engine. As physics engine is halted while
2727
//this happens, this method should do minimal processing
2828
virtual void updateRenderedState(float dt)
2929
{

AirSim/AirLib/include/api/WorldSimApiBase.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ class WorldSimApiBase {
4646

4747
//----------- Plotting APIs ----------/
4848
virtual void simFlushPersistentMarkers() = 0;
49-
virtual void simPlotPoints(const vector<Vector3r>& points, const vector<float>& color_rgba, float size, float duration, bool is_persistent) = 0;
50-
virtual void simPlotLineStrip(const vector<Vector3r>& points, const vector<float>& color_rgba, float thickness, float duration, bool is_persistent) = 0;
51-
virtual void simPlotLineList(const vector<Vector3r>& points, const vector<float>& color_rgba, float thickness, float duration, bool is_persistent) = 0;
52-
virtual void simPlotArrows(const vector<Vector3r>& points_start, const vector<Vector3r>& points_end, const vector<float>& color_rgba, float thickness, float arrow_size, float duration, bool is_persistent) = 0;
49+
virtual void simPlotPoints(const vector<Vector3r>& points, const vector<float>& color_rgba, float size, float duration, bool is_persistent) = 0;
50+
virtual void simPlotLineStrip(const vector<Vector3r>& points, const vector<float>& color_rgba, float thickness, float duration, bool is_persistent) = 0;
51+
virtual void simPlotLineList(const vector<Vector3r>& points, const vector<float>& color_rgba, float thickness, float duration, bool is_persistent) = 0;
52+
virtual void simPlotArrows(const vector<Vector3r>& points_start, const vector<Vector3r>& points_end, const vector<float>& color_rgba, float thickness, float arrow_size, float duration, bool is_persistent) = 0;
5353
virtual void simPlotStrings(const vector<std::string>& strings, const vector<Vector3r>& positions, float scale, const vector<float>& color_rgba, float duration) = 0;
54-
virtual void simPlotTransforms(const vector<Pose>& poses, float scale, float thickness, float duration, bool is_persistent) = 0;
54+
virtual void simPlotTransforms(const vector<Pose>& poses, float scale, float thickness, float duration, bool is_persistent) = 0;
5555
virtual void simPlotTransformsWithNames(const vector<Pose>& poses, const vector<std::string>& names, float tf_scale, float tf_thickness, float text_scale, const vector<float>& text_color_rgba, float duration) = 0;
5656

5757
virtual std::vector<std::string> listSceneObjects(const std::string& name_regex) const = 0;

AirSim/AirLib/src/api/RpcLibClientBase.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ STRICT_MODE_OFF
4040
STRICT_MODE_ON
4141
#ifdef _MSC_VER
4242
__pragma(warning( disable : 4239))
43-
#endif
43+
#endif
4444

4545

4646
namespace msr { namespace airlib {
@@ -125,7 +125,7 @@ void RpcLibClientBase::confirmConnection(double timeout)
125125
clock->sleep_for(delay);
126126
}
127127

128-
128+
129129
if (getConnectionState() != RpcLibClientBase::ConnectionState::Connected)
130130
{
131131
throw std::runtime_error("Failed connecting to RPC server (airsim). Is the simulator running?");
@@ -135,7 +135,7 @@ void RpcLibClientBase::confirmConnection(double timeout)
135135
auto client_ver = getClientVersion();
136136
auto server_min_ver = getMinRequiredServerVersion();
137137
auto client_min_ver = getMinRequiredClientVersion();
138-
138+
139139
std::string ver_info = Utils::stringf("Client Ver:%i (Min Req:%i), Server Ver:%i (Min Req:%i)",
140140
client_ver, client_min_ver, server_ver, server_min_ver);
141141

@@ -225,7 +225,7 @@ void RpcLibClientBase::simSetTraceLine(const std::vector<float>& color_rgba, flo
225225

226226
vector<ImageCaptureBase::ImageResponse> RpcLibClientBase::simGetImages(vector<ImageCaptureBase::ImageRequest> request, const std::string& vehicle_name)
227227
{
228-
const auto& response_adaptor = pimpl_->client.call("simGetImages",
228+
const auto& response_adaptor = pimpl_->client.call("simGetImages",
229229
RpcLibAdapatorsBase::ImageRequest::from(request), vehicle_name)
230230
.as<vector<RpcLibAdapatorsBase::ImageResponse>>();
231231

AirSim/AirLib/src/api/RpcLibServerBase.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)