Skip to content

Commit

Permalink
Fixed new util_test
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush1285 <ayush.singhftw@gmail.com>
  • Loading branch information
Ayush1285 committed Jan 15, 2025
1 parent 7820a41 commit 141bb6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nav2_mppi_controller/test/utils/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void printMap(const nav2_costmap_2d::Costmap2D & costmap)
/**
* Print costmap with trajectory and goal point to stdout.
* @param costmap map to be printed.
* @param trajectory trajectory container (xt::tensor) to be printed.
* @param trajectory trajectory container (Eigen::Array) to be printed.
* @param goal_point goal point to be printed.
*/
template<typename TTrajectory>
Expand Down Expand Up @@ -172,7 +172,7 @@ void addObstacle(nav2_costmap_2d::Costmap2D * costmap, TestObstaclesSettings s)

/**
* Check the trajectory for collisions with obstacles on the map.
* @param trajectory trajectory container (xt::tensor) to be checked.
* @param trajectory trajectory container (Eigen::Array) to be checked.
* @param costmap costmap with obstacles
* @return true - if the trajectory crosses an obstacle on the map, false - if
* not
Expand Down
2 changes: 1 addition & 1 deletion nav2_mppi_controller/test/utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ TEST(UtilsTests, WithTolTests)
state.pose.pose = pose;
models::Trajectories generated_trajectories;
models::Path path_critic;
xt::xtensor<float, 1> costs;
Eigen::ArrayXf costs;
float model_dt;
CriticData data = {
state, generated_trajectories, path_critic, goal,
Expand Down

0 comments on commit 141bb6a

Please sign in to comment.