swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
370 stars 144 forks source link

How to build mapviz in ros2 foxy #781

Closed neilkhadilkar23 closed 10 months ago

neilkhadilkar23 commented 1 year ago

I am trying to build mapviz on ros2 foxy using colcon build. I am on the dashing-devel branch. I understand that ros2 does not use catkin, but other people seem to be using this package on ros2. How do I do this? Thanks

colcon build --packages-select mapviz Starting >>> mapviz
--- stderr: mapviz CMake Error at CMakeLists.txt:27 (find_package): By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "catkin", but CMake did not find one.

Could not find a package configuration file provided by "catkin" with any of the following names:

catkinConfig.cmake
catkin-config.cmake

Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set "catkin_DIR" to a directory containing one of the above files. If "catkin" provides a separate development package or SDK, be sure it has been installed.


Failed <<< mapviz [0.04s, exited with code 1]

Summary: 0 packages finished [0.18s] 1 package failed: mapviz 1 package had stderr output: mapviz

danthony06 commented 1 year ago

It really looks like you're on the master branch, which is for ROS 1. For Foxy and later, the ros2-devel branch is where current development is being done.