Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Apr 21, 2024
1 parent 1c5d5ce commit d3bf135
Show file tree
Hide file tree
Showing 11 changed files with 2,144 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ uav_names: [
uav1:
type: "x500"
spawn:
x: 5.0
x: 0.0
y: 0.0
z: 5.0
heading: 0.0

uav2:
type: "x500"
spawn:
x: 0.0
x: 5.0
y: 0.0
z: 5.0
heading: 0.0
2 changes: 1 addition & 1 deletion test/mpc_tracker/mpc_avoidance_two_should_avoid/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool Tester::test() {
}

{
auto [success, message] = uh1->gotoRel(10, 0, 0, 0);
auto [success, message] = uh1->gotoRel(20, 0, 0, 0);

if (!success) {
ROS_ERROR("[%s]: goto failed with message: '%s'", ros::this_node::getName().c_str(), message.c_str());
Expand Down
2 changes: 1 addition & 1 deletion test/mpc_tracker/mpc_avoidance_two_should_crash/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool Tester::test() {
}

{
auto [success, message] = uh1->gotoRel(10, 0, 0, 0);
auto [success, message] = uh1->gotoRel(20, 0, 0, 0);

if (success) {
ROS_ERROR("[%s]: goto succeeded: '%s'", ros::this_node::getName().c_str(), message.c_str());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<arg name="UAV_NAME" default="uav2" />
</include>

<!-- <node pkg="rviz" type="rviz" name="rviz1" args="-d $(dirname)/rviz1.rviz" /> -->
<!-- <node pkg="rviz" type="rviz" name="rviz2" args="-d $(dirname)/rviz2.rviz" /> -->

<test pkg="$(arg package)" type="test_$(arg test_name)" test-name="$(arg test_name)" time-limit="60.0">
<param name="test" value="$(arg test_name)" />
</test>
Expand Down
Loading

0 comments on commit d3bf135

Please sign in to comment.