Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Berkay Karaman <[email protected]>
  • Loading branch information
brkay54 committed Jun 6, 2023
1 parent 264ef1a commit e5f24f6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 25 deletions.
22 changes: 11 additions & 11 deletions control/predicted_path_checker/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ autoware_package()

find_package(Eigen3 REQUIRED)


include_directories(
include
SYSTEM
${Eigen3_INCLUDE_DIRS}
)

ament_auto_add_library(predicted_path_checker SHARED
src/predicted_path_checker_node/predicted_path_checker_node.cpp
Expand All @@ -16,22 +20,18 @@ ament_auto_add_library(predicted_path_checker SHARED

)

target_include_directories(predicted_path_checker
SYSTEM PUBLIC
${EIGEN3_INCLUDE_DIR}
)

rclcpp_components_register_node(predicted_path_checker
PLUGIN "predicted_path_checker::PredictedPathCheckerNode"
PLUGIN "autoware::motion::control::predicted_path_checker::PredictedPathCheckerNode"
EXECUTABLE predicted_path_checker_node
)

if(BUILD_TESTING)

find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(
INSTALL_TO_SHARE
launch
config
)
launch
config
)
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <utility>
#include <vector>

namespace predicted_path_checker
namespace autoware::motion::control::predicted_path_checker
{
using autoware_auto_planning_msgs::msg::Trajectory;
using autoware_auto_planning_msgs::msg::TrajectoryPoint;
Expand Down Expand Up @@ -123,6 +123,6 @@ class CollisionChecker
vehicle_info_util::VehicleInfo vehicle_info_;
std::vector<PredictedObjectWithDetectionTime> predicted_object_history_{};
};
} // namespace predicted_path_checker
} // namespace autoware::motion::control::predicted_path_checker

#endif // PREDICTED_PATH_CHECKER__COLLISION_CHECKER_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <eigen3/Eigen/Geometry>
#include <tier4_autoware_utils/geometry/boost_geometry.hpp>

namespace predicted_path_checker
namespace autoware::motion::control::predicted_path_checker
{

enum class PolygonType : int8_t { Vehicle = 0, Collision };
Expand Down Expand Up @@ -87,6 +87,6 @@ class PredictedPathCheckerDebugNode
std::vector<std::vector<Eigen::Vector3d>> collision_polyhedrons_;
};

} // namespace predicted_path_checker
} // namespace autoware::motion::control::predicted_path_checker

#endif // PREDICTED_PATH_CHECKER__DEBUG_MARKER_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <utility>
#include <vector>

namespace predicted_path_checker
namespace autoware::motion::control::predicted_path_checker
{
using autoware_auto_planning_msgs::msg::Trajectory;
using autoware_auto_planning_msgs::msg::TrajectoryPoint;
Expand Down Expand Up @@ -173,6 +173,6 @@ class PredictedPathCheckerNode : public rclcpp::Node
// Diagnostic Updater
diagnostic_updater::Updater updater_;
};
} // namespace predicted_path_checker
} // namespace autoware::motion::control::predicted_path_checker

#endif // PREDICTED_PATH_CHECKER__PREDICTED_PATH_CHECKER_NODE_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <utility>
#include <vector>

namespace predicted_path_checker
namespace autoware::motion::control::predicted_path_checker
{
CollisionChecker::CollisionChecker(
rclcpp::Node * node, std::shared_ptr<PredictedPathCheckerDebugNode> debug_ptr)
Expand Down Expand Up @@ -228,4 +228,4 @@ CollisionChecker::checkDynamicObjects(
}
return boost::none;
}
} // namespace predicted_path_checker
} // namespace autoware::motion::control::predicted_path_checker
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using tier4_autoware_utils::createMarkerOrientation;
using tier4_autoware_utils::createMarkerScale;
using tier4_autoware_utils::createPoint;

namespace predicted_path_checker
namespace autoware::motion::control::predicted_path_checker
{
PredictedPathCheckerDebugNode::PredictedPathCheckerDebugNode(
rclcpp::Node * node, const double base_link2front)
Expand Down Expand Up @@ -326,4 +326,4 @@ visualization_msgs::msg::MarkerArray PredictedPathCheckerDebugNode::makeVisualiz
return msg;
}

} // namespace predicted_path_checker
} // namespace autoware::motion::control::predicted_path_checker
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <utility>
#include <vector>

namespace predicted_path_checker
namespace autoware::motion::control::predicted_path_checker
{

PredictedPathCheckerNode::PredictedPathCheckerNode(const rclcpp::NodeOptions & node_options)
Expand Down Expand Up @@ -579,8 +579,7 @@ void PredictedPathCheckerNode::filterObstacles(
}
}

} // namespace predicted_path_checker
} // namespace autoware::motion::control::predicted_path_checker

#include <rclcpp_components/register_node_macro.hpp>

RCLCPP_COMPONENTS_REGISTER_NODE(predicted_path_checker::PredictedPathCheckerNode)
RCLCPP_COMPONENTS_REGISTER_NODE(autoware::motion::control::predicted_path_checker::PredictedPathCheckerNode)

0 comments on commit e5f24f6

Please sign in to comment.