ZJU-FAST-Lab / ego-planner-swarm

An efficient single/multi-agent trajectory planner for multicopters.
GNU General Public License v3.0
1.2k stars 231 forks source link

<multi_map_server/MultiOccupancyGrid.h> not found #12

Closed anahrendra closed 3 years ago

anahrendra commented 3 years ago

The <multi_map_server/MultiOccupancyGrid.h> file is not included in the repo, leading to failed build. Thanks~

bigsuperZZZX commented 3 years ago

This .h file is generated from a .msg file "MultiOccupancyGrid.msg", therefore, you should use only one thread by "catkin_make -j1" when compiling to let the ROS build tools compile the code following the right order.

chenshun1997 commented 3 years ago

fatal error: multi_map_server/MultiOccupancyGrid.h: 没有那个文件或目录 5 | #include <multi_map_server/MultiOccupancyGrid.h> | ^~~~~~~~~~~ compilation terminated.

aphasiayc commented 2 years ago

Had the same problem. Fixed it by changing this line to

add_dependencies(multi_map_visualization multi_map_server_generate_messages_cpp)
goodworth1 commented 2 years ago

直接catkin_make就好了

hildebrandt-carl commented 1 year ago

@aphasiayc's answer worked for me too. It also allowed me to compile without the j1 flag, so that I could use all my CPU cores. Maybe it should be added to the repo?

bigsuperZZZX commented 1 year ago

Use -j1 only if you encounter that error. catkin_make works for most of the users.