ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

when i use colcon build with the nav2_ws i have this error [closed]

asked 2022-04-12 10:51:17 -0500

iimata gravatar image

In file included from /home/mh_tamimi/nav2_ws/src/navigation2/nav2_util/src/costmap.cpp:19: /home/mh_tamimi/nav2_ws/src/navigation2/nav2_util/include/nav2_util/geometry_utils.hpp:25:10: fatal error: tf2_geometry_msgs/tf2_geometry_msgs.hpp: No such file or directory 25 | #include "tf2_geometry_msgs/tf2_geometry_msgs.hpp" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. In file included from /home/mh_tamimi/nav2_ws/src/navigation2/nav2_util/src/robot_utils.cpp:20: /home/mh_tamimi/nav2_ws/src/navigation2/nav2_util/include/nav2_util/robot_utils.hpp:28:10: fatal error: tf2_geometry_msgs/tf2_geometry_msgs.hpp: No such file or directory 28 | #include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by iimata
close date 2022-04-25 05:56:05.478374

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-04-12 15:55:55 -0500

ljaniec gravatar image

Did you use rosdep? Did you install the correct version of the Nav2 packages (e.g. from branch galactic)? Check it with git status, please. You can try with installation of ros-galactic-nav-msgs too.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-04-12 10:51:17 -0500

Seen: 304 times

Last updated: Apr 12 '22