Skip to content

Commit

Permalink
Added feeback
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Nov 18, 2022
1 parent b36c218 commit ddf188e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 22 deletions.
8 changes: 3 additions & 5 deletions rmf_obstacle_ros2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@ include(GNUInstallDirs)
find_package(ament_cmake REQUIRED)

set(dep_pkgs
geometry_msgs
rclcpp
rclcpp_components
rmf_utils
pluginlib
rmf_obstacle_msgs
rmf_fleet_msgs
rmf_building_map_msgs
sensor_msgs
OCTOMAP
rmf_fleet_adapter
tf2_ros
geometry_msgs
tf2_geometry_msgs
rmf_traffic
rmf_traffic_ros2
tf2_ros
tf2_geometry_msgs
)
foreach(pkg ${dep_pkgs})
find_package(${pkg} REQUIRED)
Expand Down Expand Up @@ -133,7 +132,6 @@ if(BUILD_TESTING)
)

add_subdirectory(src/lane_blocker/test)

endif()

#===============================================================================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019 Open Source Robotics Foundation
* Copyright (C) 2022 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ void fill_obstacle_data(const PointCloud& msg, Obstacle& obstacle);
/// Convert an RMF Obstacle msg into a PointCloud2 msg
PointCloud convert(
const Obstacle& msg);


} // namespace rmf_obstacle_ros2

#endif // #indef RMF_OBSTACLE_ROS2__OBSTACLES__CONVERT_HPP
7 changes: 4 additions & 3 deletions rmf_obstacle_ros2/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@
<package format="3">
<name>rmf_obstacle_ros2</name>
<version>2.1.0</version>
<description>A package contiainings utilities for managing obstacles in RMF</description>
<description>A package containing utilities for managing obstacles in RMF</description>
<maintainer email="yadunund@openrobotics.org">Yadunund</maintainer>
<license>Apache License 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>geometry_msgs</depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<depend>rmf_utils</depend>
<depend>rmf_obstacle_msgs</depend>
<depend>rmf_fleet_msgs</depend>
<depend>rmf_building_map_msgs</depend>
<depend>sensor_msgs</depend>
<depend>octomap</depend>
<depend>rmf_fleet_adapter</depend>
<depend>rmf_traffic</depend>
<depend>rmf_traffic_ros2</depend>
<depend>rmf_fleet_adapter</depend>
<depend>tf2_ros</depend>
<depend>tf2_geometry_msgs</depend>
<depend>geometry_msgs</depend>

<test_depend>ament_cmake_catch2</test_depend>
<test_depend>ament_cmake_uncrustify</test_depend>
Expand Down
2 changes: 0 additions & 2 deletions rmf_obstacle_ros2/src/lane_blocker/LaneBlocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ void LaneBlocker::process()
lanes_with_changes.insert(lane_id);
}
}


request_lane_modifications(std::move(lanes_with_changes));
}

Expand Down
9 changes: 2 additions & 7 deletions rmf_obstacle_ros2/src/lane_blocker/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@

file(GLOB_RECURSE unit_test_srcs "*.cpp" "../IntersectionChecker.cpp")
# add_executable(test_intersection_checker ${unit_test_srcs})

ament_add_catch2(
test_intersection_checker ${unit_test_srcs}
TIMEOUT 300)
# target_link_libraries(test_intersection_checker
# rmf_traffic
# ${FCL_LIBRARIES}
# Threads::Threads
TIMEOUT 300
)

target_link_libraries(test_intersection_checker
PRIVATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ using CollisionGeometry = IntersectionChecker::CollisionGeometry;

SCENARIO("Test IntersectionChecker")
{

auto radians =
[](double degree) -> double
{
Expand Down Expand Up @@ -375,4 +374,4 @@ SCENARIO("Test IntersectionChecker")
std::cout <<"how_much: " << how_much << std::endl;
CHECK((how_much - expected) == Approx(0.0).margin(1e-3));
}
}
}

0 comments on commit ddf188e

Please sign in to comment.