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

Integrate planning tests #100

Merged
merged 14 commits into from
Sep 27, 2018
Merged

Integrate planning tests #100

merged 14 commits into from
Sep 27, 2018

Conversation

mjeronimo
Copy link

Integrate Carlos' planner tests.

@mkhansenbot mkhansenbot added this to In progress in Navigation 2 Kanban via automation Sep 26, 2018
@mjeronimo mjeronimo added this to the September 2018 milestone Sep 26, 2018
@mjeronimo mjeronimo moved this from In progress to Needs review in Navigation 2 Kanban Sep 26, 2018
Navigation 2 Kanban automation moved this from Needs review to Reviewer approved Sep 27, 2018
@@ -34,7 +34,7 @@ template<class CommandMsg, class ResultMsg>
class TaskServer : public rclcpp::Node
{
public:
explicit TaskServer(const std::string & name)
TaskServer(const std::string & name, bool autoStart = true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the case where you are just using the TaskServer instead of inheriting from it, if you don't set autoStart to true, you can't start the worker thread because the startWorkerThread method is protected.

{
RCLCPP_INFO(node_->get_logger(), "Costmap::Costmap");
lethal_threshold_ = std::max(std::min(lethal_threshold_, 100), 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we override the lethal_threshold here? Seems to me if the client set it to some value, we should honor that or throw/assert if it isn't valid.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll enter an issue for Carlos for this item.


set(TEST_LAUNCH_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test_launch_files)

ament_add_gtest_executable(test_planner_node
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these cmake commands to build and add the tests should probably go in the BUILD_TESTING section. It means there won't be anything to build if that flag is not set, but I think that is correct behavior.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

TEST_MAP=${CMAKE_CURRENT_SOURCE_DIR}/maps/map.pgm
)

install(TARGETS test_planner_node
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should install the test executable.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, updated to not install the test executable.


auto costmap_service_callback = [this](
const std::shared_ptr<rmw_request_id_t>/*request_header*/,
const std::shared_ptr<nav2_world_model_msgs::srv::GetCostmap::Request> request,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should start using typedefs and using directives. This is really awful to read.

}
}

TEST_F(PlannerTester, testWithOnFixedEndpoints)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this test be called testWithOneFixedEndpoint?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so. Updated.

@mjeronimo mjeronimo merged commit a37ace4 into ros-navigation:master Sep 27, 2018
Navigation 2 Kanban automation moved this from Reviewer approved to Done Sep 27, 2018
@mjeronimo mjeronimo deleted the integrate-planning-tests branch October 10, 2018 16:19
ghost pushed a commit to logivations/navigation2 that referenced this pull request Mar 7, 2022
…on#100)

* Add param to include closer zones

* added behaviour to get out of blocked lidar zone

* Fixing build errors

* PR comments fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants