24 #include <VirtualRobot/Random.h>
80 const Eigen::Vector2f goal =
111 scene.
staticScene->distanceToObstaclesCostmap.emplace(distanceField_);
129 if (plan.has_value())
131 globalTrajectory_ = plan->trajectory;
134 .linearVelocity = Eigen::Vector2f::Zero(),
146 if (plan.has_value())
148 globalTrajectory_ = plan->trajectory;
151 .linearVelocity = Eigen::Vector2f::Zero(),
168 const auto projection =
174 const auto wpBefore = projection.wayPointBefore.waypoint.pose.translation();
175 const auto wpAfter = projection.wayPointAfter.waypoint.pose.translation();
178 (wpAfter - wpBefore).head<2>().normalized() * projection.projection.velocity;
189 distanceField_(distanceField), params_(params)
193 human_.
pose = sampledPose.value();