introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
1.02k stars 560 forks source link

EnvSensor’ in namespace ‘rtabmap_ros’ does not name a type #487

Closed ghokulji closed 4 years ago

ghokulji commented 4 years ago

I built the rtabmap_ros package from source, I am facing the error : ‘EnvSensor’ in namespace ‘rtabmap_ros’ does not name a type error: ‘rtabmap_ros::EnvSensor’ has not been declared.

rt

The only error coming while catkin_make is the env_sensor erroe

matlabbe commented 4 years ago

The message should be built: https://github.com/introlab/rtabmap_ros/blob/f748a671841be68698e3b702619e594bf62d74b0/CMakeLists.txt#L109

Is your setup.bash of your catkin_ws/devel is sourced?

ghokulji commented 4 years ago

Yes the setup.bassh is sourced. I reinstalled the rtabmap and rtabmap_ros packages and now it is working fine.