Skip to content

Commit

Permalink
fix(freespace_planning_algorithms): modify build error in rolling (ti…
Browse files Browse the repository at this point in the history
…er4#774)

Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
  • Loading branch information
wep21 authored and boyali committed Oct 19, 2022
1 parent 521eca9 commit a488937
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@
#include <nav_msgs/msg/occupancy_grid.hpp>

#include <tf2/utils.h>

#ifdef USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#endif

#include <vector>

// TODO(wep21): Remove these apis
// after they are implemented in ros2 geometry2.
#ifdef USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
namespace tf2
{
inline void fromMsg(const geometry_msgs::msg::Point & in, tf2::Vector3 & out)
Expand All @@ -48,6 +52,7 @@ inline void doTransform(
toMsg(v_out, t_out);
}
} // namespace tf2
#endif

namespace freespace_planning_algorithms
{
Expand Down
5 changes: 5 additions & 0 deletions planning/freespace_planning_algorithms/src/astar_search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
#include <tier4_autoware_utils/tier4_autoware_utils.hpp>

#include <tf2/utils.h>

#ifdef USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#endif

#include <vector>

Expand Down

0 comments on commit a488937

Please sign in to comment.