Skip to content

Instantly share code, notes, and snippets.

@DhruvaG2000
Created October 14, 2020 13:15
Show Gist options
  • Save DhruvaG2000/bec20eef8a1eb89a41300c65af142794 to your computer and use it in GitHub Desktop.
Save DhruvaG2000/bec20eef8a1eb89a41300c65af142794 to your computer and use it in GitHub Desktop.
catkin make err
[ 33%] Built target gazebo_light_sensor_plugin_generate_messages_eus
Scanning dependencies of target gazebo_light_sensor_plugin_generate_messages
[ 33%] Built target gazebo_light_sensor_plugin_generate_messages
[ 66%] Building CXX object Camera_Maunil/CMakeFiles/gazebo_light_sensor_plugin.dir/src/light_sensor_plugin.cpp.o
/home/dhruva/catkin_ws_sra/src/Camera_Maunil/src/light_sensor_plugin.cpp: In member function ‘virtual void gazebo::GazeboRosLight::OnNewFrame(const unsigned char*, unsigned int, unsigned int, unsigned int, const string&)’:
/home/dhruva/catkin_ws_sra/src/Camera_Maunil/src/light_sensor_plugin.cpp:67:54: error: ‘using element_type = class gazebo::sensors::Sensor’ {aka ‘class gazebo::sensors::Sensor’} has no member named ‘GetLastUpdateTime’; did you mean ‘LastUpdateTime’?
this->sensor_update_time_ = this->parentSensor_->GetLastUpdateTime();
^~~~~~~~~~~~~~~~~
LastUpdateTime
/home/dhruva/catkin_ws_sra/src/Camera_Maunil/src/light_sensor_plugin.cpp:79:47: error: ‘class gazebo::physics::World’ has no member named ‘GetSimTime’; did you mean ‘SetSimTime’?
common::Time cur_time = this->world_->GetSimTime();
^~~~~~~~~~
SetSimTime
make[2]: *** [Camera_Maunil/CMakeFiles/gazebo_light_sensor_plugin.dir/build.make:82: Camera_Maunil/CMakeFiles/gazebo_light_sensor_plugin.dir/src/light_sensor_plugin.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1904: Camera_Maunil/CMakeFiles/gazebo_light_sensor_plugin.dir/all] Error 2
make: *** [Makefile:160: all] Error 2
Invoking "make -j4 -l4" failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment