Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some tests #2962

Merged
merged 4 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nav2_bringup/launch/bringup_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from launch.conditions import IfCondition
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import PushRosNamespace
from launch_ros.actions import Node
from launch_ros.actions import PushRosNamespace
from nav2_common.launch import RewrittenYaml


Expand Down
2 changes: 1 addition & 1 deletion nav2_bringup/launch/localization_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from launch.actions import DeclareLaunchArgument, GroupAction, SetEnvironmentVariable
from launch.conditions import IfCondition
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import Node
from launch_ros.actions import LoadComposableNodes
from launch_ros.actions import Node
from launch_ros.descriptions import ComposableNode
from nav2_common.launch import RewrittenYaml

Expand Down
2 changes: 1 addition & 1 deletion nav2_bringup/launch/navigation_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from launch.actions import DeclareLaunchArgument, GroupAction, SetEnvironmentVariable
from launch.conditions import IfCondition
from launch.substitutions import LaunchConfiguration, PythonExpression
from launch_ros.actions import Node
from launch_ros.actions import LoadComposableNodes
from launch_ros.actions import Node
from launch_ros.descriptions import ComposableNode
from nav2_common.launch import RewrittenYaml

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from nav2_msgs.srv import ClearEntireCostmap, GetCostmap, LoadMap, ManageLifecycleNodes

import rclpy
from rclpy.duration import Duration as rclpyDuration
from rclpy.action import ActionClient
from rclpy.duration import Duration as rclpyDuration
from rclpy.node import Node
from rclpy.qos import QoSDurabilityPolicy, QoSHistoryPolicy
from rclpy.qos import QoSProfile, QoSReliabilityPolicy
Expand Down
2 changes: 1 addition & 1 deletion nav2_smac_planner/test/test_a_star.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ TEST(AStarTest, test_a_star_lattice)

// check path is the right size and collision free
EXPECT_EQ(num_it, 21);
EXPECT_EQ(path.size(), 47u);
EXPECT_EQ(path.size(), 48u);
for (unsigned int i = 0; i != path.size(); i++) {
EXPECT_EQ(costmapA->getCost(path[i].x, path[i].y), 0);
}
Expand Down
1 change: 1 addition & 0 deletions nav2_system_tests/src/costmap_filters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ament_add_test(test_keepout_filter
TEST_MAP=${PROJECT_SOURCE_DIR}/maps/map_circular.yaml
TEST_MASK=${PROJECT_SOURCE_DIR}/maps/keepout_mask.yaml
TEST_WORLD=${PROJECT_SOURCE_DIR}/worlds/turtlebot3_ros2_demo.world
PARAMS_FILE=${CMAKE_CURRENT_SOURCE_DIR}/keepout_params.yaml
GAZEBO_MODEL_PATH=${PROJECT_SOURCE_DIR}/models
BT_NAVIGATOR_XML=navigate_to_pose_w_replanning_and_recovery.xml
ASTAR=False
Expand Down
2 changes: 1 addition & 1 deletion nav2_system_tests/src/costmap_filters/keepout_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ controller_server:
min_y_velocity_threshold: 0.5
min_theta_velocity_threshold: 0.001
progress_checker_plugin: "progress_checker"
goal_checker_plugins: "goal_checker"
goal_checker_plugins: ["goal_checker"]
controller_plugins: ["FollowPath"]

# Progress checker parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ controller_server:
min_theta_velocity_threshold: 0.001
speed_limit_topic: "/speed_limit"
progress_checker_plugin: "progress_checker"
goal_checker_plugins: "goal_checker"
goal_checker_plugins: ["goal_checker"]
controller_plugins: ["FollowPath"]

# Progress checker parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ controller_server:
min_theta_velocity_threshold: 0.001
speed_limit_topic: "/speed_limit"
progress_checker_plugin: "progress_checker"
goal_checker_plugins: "goal_checker"
goal_checker_plugins: ["goal_checker"]
controller_plugins: ["FollowPath"]

# Progress checker parameters
Expand Down
7 changes: 6 additions & 1 deletion nav2_system_tests/src/costmap_filters/test_keepout_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ def generate_launch_description():
executable='lifecycle_manager',
name='lifecycle_manager_filters',
output='screen',
parameters=[{'node_names': ['filter_mask_server', 'costmap_filter_info_server']},
parameters=[{
'node_names':
[
'filter_mask_server', 'costmap_filter_info_server', 'bt_navigator'
]
},
{'autostart': True}]),

# Nodes required for Costmap Filters configuration
Expand Down
7 changes: 6 additions & 1 deletion nav2_system_tests/src/costmap_filters/test_speed_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ def generate_launch_description():
executable='lifecycle_manager',
name='lifecycle_manager_filters',
output='screen',
parameters=[{'node_names': ['filter_mask_server', 'costmap_filter_info_server']},
parameters=[{
'node_names':
[
'filter_mask_server', 'costmap_filter_info_server', 'bt_navigator'
]
},
{'autostart': True}]),

# Nodes required for Costmap Filters configuration
Expand Down
Loading