Skip to content

Commit 2e717db

Browse files
committed
Add empty unit tests for new profiles
1 parent a18efdf commit 2e717db

File tree

6 files changed

+207
-0
lines changed

6 files changed

+207
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SimplePlanner
2+
3+
The SimplePlanner is a simple path interpolator. It is used to generate initial trajectories with a minimum number of waypoints needed for e.g. Trajopt.
4+
5+
## Profiles
6+
7+
Fixed size: fixed number of waypoints between initial waypoints.
8+
LVS: LVS number of waypoints between initial waypoints.
9+
Assign: No interpolation, but simple replication of (base/prev?) waypoints. This will allow Trajopt to evolve organically from the start to the goal.
10+
11+
SimplePlannerFixedSizeAssignNoIKMoveProfile
12+
SimplePlannerFixedSizeAssignMoveProfile
13+
SimplePlannerFixedSizeNoIKMoveProfile does not exist.
14+
SimplePlannerFixedSizeMoveProfile
15+
SimplePlannerLVSAssignNoIKMoveProfile
16+
SimplePlannerLVSAssignMoveProfile
17+
SimplePlannerLVSNoIKMoveProfile
18+
SimplePlannerLVSMoveProfile

tesseract_motion_planners/simple/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ macro(add_gtest test_name test_file)
1818
add_dependencies(run_tests ${test_name})
1919
endmacro()
2020

21+
add_gtest(${PROJECT_NAME}_simple_planner_fixed_size_assign_move_unit simple_planner_fixed_size_assign_move_unit.cpp)
2122
add_gtest(${PROJECT_NAME}_simple_planner_fixed_size_assign_no_ik_move_unit
2223
simple_planner_fixed_size_assign_no_ik_move_unit.cpp)
2324
add_gtest(${PROJECT_NAME}_simple_planner_fixed_size_move_unit simple_planner_fixed_size_move_unit.cpp)
25+
add_gtest(${PROJECT_NAME}_simple_planner_lvs_assign_move_unit simple_planner_lvs_assign_move_unit.cpp)
26+
add_gtest(${PROJECT_NAME}_simple_planner_lvs_assign_no_ik_move_unit simple_planner_lvs_assign_no_ik_move_unit.cpp)
2427
add_gtest(${PROJECT_NAME}_simple_planner_lvs_move_unit simple_planner_lvs_move_unit.cpp)
28+
add_gtest(${PROJECT_NAME}_simple_planner_lvs_no_ik_move_unit simple_planner_lvs_no_ik_move_unit.cpp)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* @file simple_planner_fixed_size_assign_move_unit.cpp
3+
* @brief
4+
*
5+
* @author Levi Armstrong
6+
* @date July 28, 2020
7+
* @version TODO
8+
* @bug No known bugs
9+
*
10+
* @copyright Copyright (c) 2020, Southwest Research Institute
11+
*
12+
* @par License
13+
* Software License Agreement (Apache License)
14+
* @par
15+
* Licensed under the Apache License, Version 2.0 (the "License");
16+
* you may not use this file except in compliance with the License.
17+
* You may obtain a copy of the License at
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
* @par
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
*/
26+
#include "simple_planner_test_utils.hpp"
27+
28+
#include <tesseract_common/types.h>
29+
#include <tesseract_motion_planners/core/types.h>
30+
#include <tesseract_motion_planners/simple/profile/simple_planner_fixed_size_assign_move_profile.h>
31+
#include <tesseract_command_language/joint_waypoint.h>
32+
#include <tesseract_command_language/cartesian_waypoint.h>
33+
#include <tesseract_command_language/move_instruction.h>
34+
35+
using namespace tesseract_planning;
36+
37+
class TesseractPlanningSimplePlannerFixedSizeAssignMoveProfileUnit : public TesseractPlanningSimplePlannerUnit
38+
{
39+
};
40+
41+
int main(int argc, char** argv)
42+
{
43+
testing::InitGoogleTest(&argc, argv);
44+
45+
return RUN_ALL_TESTS();
46+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* @file simple_planner_lvs_assign_move_unit.cpp
3+
* @brief Unit tests for SimplePlannerLVSAssignMoveProfile
4+
*
5+
* @author Levi Armstrong
6+
* @date July 28, 2020
7+
* @version TODO
8+
* @bug No known bugs
9+
*
10+
* @copyright Copyright (c) 2020, Southwest Research Institute
11+
*
12+
* @par License
13+
* Software License Agreement (Apache License)
14+
* @par
15+
* Licensed under the Apache License, Version 2.0 (the "License");
16+
* you may not use this file except in compliance with the License.
17+
* You may obtain a copy of the License at
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
* @par
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
*/
26+
#include "simple_planner_test_utils.hpp"
27+
28+
#include <tesseract_common/types.h>
29+
#include <tesseract_motion_planners/core/types.h>
30+
#include <tesseract_motion_planners/simple/profile/simple_planner_lvs_assign_move_profile.h>
31+
#include <tesseract_command_language/joint_waypoint.h>
32+
#include <tesseract_command_language/cartesian_waypoint.h>
33+
#include <tesseract_command_language/move_instruction.h>
34+
35+
using namespace tesseract_planning;
36+
37+
class TesseractPlanningSimplePlannerLVSAssignMoveProfileUnit : public TesseractPlanningSimplePlannerUnit
38+
{
39+
};
40+
41+
int main(int argc, char** argv)
42+
{
43+
testing::InitGoogleTest(&argc, argv);
44+
45+
return RUN_ALL_TESTS();
46+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* @file simple_planner_lvs_assign_no_ik_move_unit.cpp
3+
* @brief
4+
*
5+
* @author Levi Armstrong
6+
* @date July 28, 2020
7+
* @version TODO
8+
* @bug No known bugs
9+
*
10+
* @copyright Copyright (c) 2020, Southwest Research Institute
11+
*
12+
* @par License
13+
* Software License Agreement (Apache License)
14+
* @par
15+
* Licensed under the Apache License, Version 2.0 (the "License");
16+
* you may not use this file except in compliance with the License.
17+
* You may obtain a copy of the License at
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
* @par
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
*/
26+
#include "simple_planner_test_utils.hpp"
27+
28+
#include <gtest/gtest.h>
29+
#include <tesseract_common/types.h>
30+
#include <tesseract_motion_planners/core/types.h>
31+
#include <tesseract_motion_planners/simple/profile/simple_planner_lvs_assign_no_ik_move_profile.h>
32+
#include <tesseract_command_language/joint_waypoint.h>
33+
#include <tesseract_command_language/cartesian_waypoint.h>
34+
#include <tesseract_command_language/move_instruction.h>
35+
36+
using namespace tesseract_planning;
37+
38+
class TesseractPlanningSimplePlannerLVSAssignNoIKMoveProfileUnit : public TesseractPlanningSimplePlannerUnit
39+
{
40+
};
41+
42+
int main(int argc, char** argv)
43+
{
44+
testing::InitGoogleTest(&argc, argv);
45+
46+
return RUN_ALL_TESTS();
47+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/**
2+
* @file simple_planner_lvs_no_ik_move_unit.cpp
3+
* @brief
4+
*
5+
* @author Matthew Powelson
6+
* @date July 23, 2020
7+
* @version TODO
8+
* @bug No known bugs
9+
*
10+
* @copyright Copyright (c) 2020, Southwest Research Institute
11+
*
12+
* @par License
13+
* Software License Agreement (Apache License)
14+
* @par
15+
* Licensed under the Apache License, Version 2.0 (the "License");
16+
* you may not use this file except in compliance with the License.
17+
* You may obtain a copy of the License at
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
* @par
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
*/
26+
#include "simple_planner_test_utils.hpp"
27+
28+
#include <tesseract_common/types.h>
29+
#include <tesseract_motion_planners/core/types.h>
30+
#include <tesseract_motion_planners/simple/profile/simple_planner_lvs_no_ik_move_profile.h>
31+
#include <tesseract_command_language/joint_waypoint.h>
32+
#include <tesseract_command_language/cartesian_waypoint.h>
33+
#include <tesseract_command_language/move_instruction.h>
34+
35+
using namespace tesseract_planning;
36+
37+
class TesseractPlanningSimplePlannerLVSNoIKMoveProfileUnit : public TesseractPlanningSimplePlannerUnit
38+
{
39+
};
40+
41+
int main(int argc, char** argv)
42+
{
43+
testing::InitGoogleTest(&argc, argv);
44+
45+
return RUN_ALL_TESTS();
46+
}

0 commit comments

Comments
 (0)