Fix unit conversion for velocity

This commit is contained in:
nsubiron 2018-11-07 11:32:38 +01:00
parent 878b484696
commit 6e0c0c808f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static carla::Buffer AWorldObserver_Serialize(
for (auto &&pair : Registry) {
auto &&actor_view = pair.second;
check(actor_view.GetActor() != nullptr);
constexpr float TO_METERS = 1e-3;
constexpr float TO_METERS = 1e-2;
const auto velocity = TO_METERS * actor_view.GetActor()->GetVelocity();
ActorDynamicState info = {
actor_view.GetActorId(),