Skip to content

Instantly share code, notes, and snippets.

@gunshi
Created April 13, 2016 10:43
Show Gist options
  • Save gunshi/494f58eb5ad7889dd046dd902e4bbbad to your computer and use it in GitHub Desktop.
Save gunshi/494f58eb5ad7889dd046dd902e4bbbad to your computer and use it in GitHub Desktop.
Error from run of "cd /Users/gunshigupta/ros_catkin_ws/build_isolated/gazebo_plugins && /Users/gunshigupta/ros_catkin_ws/install_isolated/env.sh make -j4 -l4"
In file included from /Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:19:
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/include/gazebo_plugins/MultiCameraPlugin.h:46:25: error: no
type named 'MultiCameraSensorPtr' in namespace 'gazebo::sensors'; did you mean 'MultiCameraSensor'?
protected: sensors::MultiCameraSensorPtr parentSensor;
~~~~~~~^~~~~~~~~~~~~~~~~~
MultiCameraSensor
/usr/local/Cellar/gazebo1/1.9.7/include/gazebo-1.9/gazebo/sensors/MultiCameraSensor.hh:40:11: note: 'MultiCameraSensor' declared
here
class MultiCameraSensor : public Sensor
^
[ 47%] Linking CXX executable /Users/gunshigupta/ros_catkin_ws/devel_isolated/gazebo_plugins/lib/gazebo_plugins/pub_joint_trajectory_test
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:33:22: error: no member named
'reset' in 'gazebo::sensors::MultiCameraSensor'
this->parentSensor.reset();
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:45:22: error: no viable overloaded
'='
this->parentSensor =
~~~~~~~~~~~~~~~~~~ ^
/usr/local/Cellar/gazebo1/1.9.7/include/gazebo-1.9/gazebo/sensors/MultiCameraSensor.hh:40:11: note: candidate function
(the implicit copy assignment operator) not viable: no known conversion from
'shared_ptr<gazebo::sensors::MultiCameraSensor>' to 'gazebo::sensors::MultiCameraSensor &' for 1st argument
class MultiCameraSensor : public Sensor
^
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:48:7: error: invalid argument type
'sensors::MultiCameraSensor' to unary expression
if (!this->parentSensor)
^~~~~~~~~~~~~~~~~~~
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:57:7: error: invalid argument type
'sensors::MultiCameraSensor' to unary expression
if (!this->parentSensor)
^~~~~~~~~~~~~~~~~~~
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:63:50: error: member reference type
'sensors::MultiCameraSensor' is not a pointer; maybe you meant to use '.'?
for (unsigned int i = 0; i < this->parentSensor->GetCameraCount(); ++i)
~~~~~~~~~~~~~~~~~~^~
.
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:65:46: error: member reference type
'sensors::MultiCameraSensor' is not a pointer; maybe you meant to use '.'?
this->camera.push_back(this->parentSensor->GetCamera(i));
~~~~~~~~~~~~~~~~~~^~
.
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:73:48: error: member reference type
'sensors::MultiCameraSensor' is not a pointer; maybe you meant to use '.'?
std::string cameraName = this->parentSensor->GetCamera(i)->GetName();
~~~~~~~~~~~~~~~~~~^~
.
/Users/gunshigupta/ros_catkin_ws/src/gazebo_ros_pkgs/gazebo_plugins/src/MultiCameraPlugin.cpp:91:21: error: member reference type
'sensors::MultiCameraSensor' is not a pointer; maybe you meant to use '.'?
this->parentSensor->SetActive(true);
~~~~~~~~~~~~~~~~~~^~
.
9 warnings and 9 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment