Skip to content

Commit

Permalink
planner_cspace: add test case for zero size costmap_update
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Dec 24, 2024
1 parent 8e9e3e1 commit f0e20e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions planner_cspace/test/src/test_planner_3d_map_size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,18 @@ TEST_F(Planner3DMapSize, OutOfRangeAll)
ASSERT_TRUE(waitStatus(ros::Duration(2)));
}

TEST_F(Planner3DMapSize, ZeroSizeUpdate)
{
const ros::Time now = ros::Time::now();
pub_map_.publish(generateCSpace3DMsg(now, 0x80, 0x80, 4));
ros::Duration(0.1).sleep();
pub_map_update_.publish(generateCSpace3DUpdateMsg(now, 1, 1, 0, 0, 0, 0));
ros::Duration(0.5).sleep();
ros::spinOnce();
cnt_status_ = 0;
ASSERT_TRUE(waitStatus(ros::Duration(2)));
}

TEST_F(Planner3DMapSize, IllOrderedUpdate)
{
const ros::Time now = ros::Time::now();
Expand Down

0 comments on commit f0e20e5

Please sign in to comment.