Skip to content

Commit

Permalink
minimator: Fix json api
Browse files Browse the repository at this point in the history
  • Loading branch information
tobifalk committed Nov 18, 2021
1 parent 86db151 commit 5df6e9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/minimator/src/minimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,9 @@ class MinimatorSimulator : public cloe::Simulator {
*/
friend void to_json(cloe::Json& j, const MinimatorSimulator& b) {
j = cloe::Json{
{"connected", b.connected_}, {"operational", b.operational_}, {"running", nullptr},
{"num_vehicles", b.num_vehicles()}, {"vehicles", b.vehicles_},
{"is_connected", b.connected_}, {"is_operational", b.operational_},
{"running", nullptr}, {"num_vehicles", b.num_vehicles()},
{"vehicles", b.vehicles_},
};
}

Expand Down

0 comments on commit 5df6e9d

Please sign in to comment.