Skip to content

Commit

Permalink
fix initialization issue in poly_map_planner_node: the goal should be…
Browse files Browse the repository at this point in the history
… inside the map.
  • Loading branch information
sikang committed Jan 16, 2019
1 parent 19a22d5 commit b8b8d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mpl_test_node/launch/poly_map_planner_node/test.launch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
launch-prefix="$(arg prefix)"
output="screen">
<!-- Set start and goal -->
<param name="goal_x" value="18"/>
<param name="goal_x" value="18.0"/>
<param name="goal_y" value="0"/>
<param name="start_vx" value="0.0"/>
<param name="start_vy" value="0.0"/>
Expand Down
4 changes: 2 additions & 2 deletions mpl_test_node/src/poly_map_planner_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int main(int argc, char **argv) {
Vec2f origin, dim;
nh.param("origin_x", origin(0), 0.0);
nh.param("origin_y", origin(1), -2.5);
nh.param("range_x", dim(0), 15.0);
nh.param("range_x", dim(0), 20.0);
nh.param("range_y", dim(1), 5.0);

// Initialize planner
Expand All @@ -55,7 +55,7 @@ int main(int argc, char **argv) {
planner_ptr->setVmax(v_max); // Set max velocity
planner_ptr->setAmax(a_max); // Set max acceleration
planner_ptr->setDt(dt); // Set dt for each primitive
planner_ptr->setTol(0.5, 0.1); // Tolerance for goal region
planner_ptr->setTol(1.0, 1.0); // Tolerance for goal region

// Set start and goal
double start_x, start_y;
Expand Down

0 comments on commit b8b8d2b

Please sign in to comment.