PamirGhimire / visualServoing_ROSProject

Visual Servoing for fine positioning of TurtleBot2
22 stars 9 forks source link

Make Error with Sim File #1

Closed aarontan-git closed 6 years ago

aarontan-git commented 6 years ago

Hello,

Thank you for sharing your work, but I am running in to some problems. I have git cloned your package to my catkin_ws/src ; however, when I tried to catkin_make, I am running in to an error with the IBVS_PointsBased_gazebo file.

Please help. Thank you in advance.

PamirGhimire commented 6 years ago

Hi, can you please also share with the error message?

On Wed, Feb 7, 2018 at 3:59 PM, aarontan94 notifications@github.com wrote:

Hello,

Thank you for sharing your work, but I am running in to some problems. I have git cloned your package to my catkin_ws/src ; however, when I tried to catkin_make, I am running in to an error with the IBVS_PointsBased_gazebo file.

Please help. Thank you in advance.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PamirGhimire/visualServoing_ROSProject/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ALcGIYJMPVAxk9YBUtsfqaRV5p_Q-JzLks5tSbpSgaJpZM4R82JG .

aarontan-git commented 6 years ago

Thank you for your prompt response. Here is what I get when I tried to do catkin_make.. It seems like there are some undefined references and errors with the points based IBVS gazebo file

CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::initPlotter()': pointsBasedIBVS_gazebo.cpp:(.text+0x8c): undefined reference tovpPlot::init(unsigned int, unsigned int, unsigned int, int, int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xc6): undefined reference to vpPlot::setTitle(unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xfe): undefined reference tovpPlot::setTitle(unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x123): undefined reference to vpPlot::initGraph(unsigned int, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x135): undefined reference tovpPlot::initGraph(unsigned int, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x156): undefined reference to vpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x190): undefined reference tovpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1ca): undefined reference to vpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x204): undefined reference tovpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x23e): undefined reference to vpPlot::setLegend(unsigned int, unsigned int, std::string const&)' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o:pointsBasedIBVS_gazebo.cpp:(.text+0x273): more undefined references tovpPlot::setLegend(unsigned int, unsigned int, std::string const&)' follow CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::getIbvsVel()': pointsBasedIBVS_gazebo.cpp:(.text+0x891): undefined reference tovpServo::computeControlLaw()' pointsBasedIBVS_gazebo.cpp:(.text+0x8a5): undefined reference to vpColVector::operator=(vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x9cf): undefined reference tovpColVector::operator=(vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xcf2): undefined reference to vpPlot::plot(unsigned int, double, vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xd43): undefined reference tovpPlot::plot(unsigned int, double, vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xe61): undefined reference to vpException::vpException(int, char const*, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xe6b): undefined reference totypeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text+0xea6): undefined reference to vpException::vpException(int, char const*, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xeb0): undefined reference totypeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text+0xee9): undefined reference to vpException::vpException(int, char const*, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xef3): undefined reference totypeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text+0xf26): undefined reference to vpException::vpException(int, char const*, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xf30): undefined reference totypeinfo for vpException' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::getCurrentFeatures(sensor_msgs::Image_<std::allocator<void> > const&)': pointsBasedIBVS_gazebo.cpp:(.text+0x1153): undefined reference tovisp_bridge::toVispImage(sensormsgs::Image<std::allocator > const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1247): undefined reference to vpDisplay::display(vpImage<unsigned char> const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1285): undefined reference tovpDot2::track(vpImage const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x12b5): undefined reference to vpDot2::track(vpImage<unsigned char> const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x12e5): undefined reference tovpDot2::track(vpImage const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1315): undefined reference to vpDot2::track(vpImage<unsigned char> const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x140a): undefined reference tovpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x1418): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x1428): undefined reference tovpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x143a): undefined reference to vpBasicFeature::vpBasicFeature(vpBasicFeature const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1458): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x1466): undefined reference to vpBasicFeature::vpBasicFeature(vpBasicFeature const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1488): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x1656): undefined reference to vtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x165b): undefined reference tovpBasicFeature::~vpBasicFeature()' pointsBasedIBVS_gazebo.cpp:(.text+0x1669): undefined reference to vtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x166e): undefined reference tovpBasicFeature::~vpBasicFeature()' pointsBasedIBVS_gazebo.cpp:(.text+0x1694): undefined reference to vpDisplay::flush(vpImage<unsigned char> const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x16be): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x16da): undefined reference to vpDot2::initTracking(vpImage<unsigned char> const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x173e): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x1767): undefined reference to vpDot2::initTracking(vpImage<unsigned char> const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x178e): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x17b7): undefined reference to vpDot2::initTracking(vpImage<unsigned char> const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x17de): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x1807): undefined reference to vpDot2::initTracking(vpImage<unsigned char> const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x1908): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x190d): undefined reference to vpBasicFeature::~vpBasicFeature()' pointsBasedIBVS_gazebo.cpp:(.text+0x191b): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x1920): undefined reference to vpBasicFeature::~vpBasicFeature()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionvispIbvs::vispIbvs()': pointsBasedIBVS_gazebo.cpp:(.text+0x1a3f): undefined reference to ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1af7): undefined reference tovpDot2::vpDot2()' pointsBasedIBVS_gazebo.cpp:(.text+0x1b66): undefined reference to vpDisplayX::vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text+0x1b75): undefined reference tovpServo::vpServo()' pointsBasedIBVS_gazebo.cpp:(.text+0x1bc8): undefined reference to vpCameraParameters::vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text+0x1bdc): undefined reference tovpPlot::vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text+0x1c37): undefined reference to vpFeaturePoint::vpFeaturePoint()' pointsBasedIBVS_gazebo.cpp:(.text+0x1c61): undefined reference tovpFeaturePoint::vpFeaturePoint()' pointsBasedIBVS_gazebo.cpp:(.text+0x1cef): undefined reference to vpCameraParameters::initPersProjWithoutDistortion(double, double, double, double)' pointsBasedIBVS_gazebo.cpp:(.text+0x20b8): undefined reference toros::NodeHandle::subscribe(ros::SubscribeOptions&)' pointsBasedIBVS_gazebo.cpp:(.text+0x210a): undefined reference to ros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text+0x267d): undefined reference toros::NodeHandle::advertise(ros::AdvertiseOptions&)' pointsBasedIBVS_gazebo.cpp:(.text+0x26ca): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text+0x280d): undefined reference tovpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x281a): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x282a): undefined reference tovpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x283f): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x286b): undefined reference tovpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2878): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2888): undefined reference tovpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x289f): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x28cb): undefined reference tovpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x28d8): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x28e8): undefined reference tovpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x28ff): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x292b): undefined reference tovpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2938): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2948): undefined reference tovpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x295f): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x2992): undefined reference tovpDisplayX::init(vpImage&, int, int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x2a11): undefined reference to vpServo::setServo(vpServo::vpServoType const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x2a3a): undefined reference tovpServo::setInteractionMatrixType(vpServo::vpServoIteractionMatrixType const&, vpServo::vpServoInversionType const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x2a4e): undefined reference to vpAdaptiveGain::initFromConstant(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x3158): undefined reference tovpPlot::~vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text+0x3162): undefined reference to vpCameraParameters::~vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text+0x3181): undefined reference tovpServo::~vpServo()' pointsBasedIBVS_gazebo.cpp:(.text+0x318b): undefined reference to vpDisplayX::~vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text+0x31d3): undefined reference toros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text+0x31df): undefined reference to ros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text+0x31fd): undefined reference toros::NodeHandle::~NodeHandle()' pointsBasedIBVS_gazebo.cpp:(.text+0x3479): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text+0x3626): undefined reference toros::Subscriber::~Subscriber()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vpException::~vpException()': pointsBasedIBVS_gazebo.cpp:(.text._ZN11vpExceptionD2Ev[_ZN11vpExceptionD5Ev]+0xf): undefined reference tovtable for vpException' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vpException::~vpException()': pointsBasedIBVS_gazebo.cpp:(.text._ZN11vpExceptionD0Ev[_ZN11vpExceptionD0Ev]+0xf): undefined reference tovtable for vpException' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function ros::SerializedMessage ros::serialization::serializeMessage<geometry_msgs::Twist_<std::allocator<void> > >(geometry_msgs::Twist_<std::allocator<void> > const&)': pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT_[_ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT_]+0xbd): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT[_ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT]+0x1b1): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT_[_ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT_]+0x1c1): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT[_ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT]+0x1d1): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT_[_ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT_]+0x1e1): undefined reference toros::serialization::throwStreamOverrun()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o:pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT[_ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT]+0x1f1): more undefined references to ros::serialization::throwStreamOverrun()' follow CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionvoid ros::Publisher::publish<geometrymsgs::Twist<std::allocator > >(geometrymsgs::Twist<std::allocator > const&) const': pointsBasedIBVS_gazebo.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6TwistISaIvEEEEEvRKT[_ZNK3ros9Publisher7publishIN13geometry_msgs6TwistISaIvEEEEEvRKT]+0x15): undefined reference to ros::Publisher::Impl::isValid() const' pointsBasedIBVS_gazebo.cpp:(.text._ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_[_ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT_]+0xb5): undefined reference toros::Publisher::publish(boost::function<ros::SerializedMessage ()> const&, ros::SerializedMessage&) const' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vpImage<unsigned char>::init(unsigned int, unsigned int)': pointsBasedIBVS_gazebo.cpp:(.text._ZN7vpImageIhE4initEjj[_ZN7vpImageIhE4initEjj]+0x103): undefined reference tovpException::vpException(int, char const, ...)' pointsBasedIBVS_gazebo.cpp:(.text._ZN7vpImageIhE4initEjj[_ZN7vpImageIhE4initEjj]+0x10d): undefined reference to typeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text._ZN7vpImageIhE4initEjj[_ZN7vpImageIhE4initEjj]+0x133): undefined reference tovpException::vpException(int, char const, ...)' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function ros::SubscriptionCallbackHelperT<sensor_msgs::Image_<std::allocator<void> > const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)': pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x341): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x359): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x369): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x379): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x3c0): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x3d2): undefined reference to ros::console::g_initialized' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x421): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x431): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x441): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x451): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x461): undefined reference toros::serialization::throwStreamOverrun()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o:pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x541): more undefined references to ros::serialization::throwStreamOverrun()' follow CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionros::SubscriptionCallbackHelperT<sensormsgs::Image<std::allocator > const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)': pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x6bd): undefined reference to ros::console::print(ros::console::FilterBase*, void*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x6e7): undefined reference toros::console::initializeLogLocation(ros::console::LogLocation, std::string const&, ros::console::levels::Level)' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x70b): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation, ros::console::levels::Level)' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x715): undefined reference to ros::console::checkLogLocationEnabled(ros::console::LogLocation*)' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE[_ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x71f): undefined reference toros::console::initialize()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function main': pointsBasedIBVS_gazebo.cpp:(.text.startup+0x94): undefined reference toros::init(int&, char, std::string const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text.startup+0xd4): undefined reference to ros::spin()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionvispIbvs::~vispIbvs()': pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x73): undefined reference to vpPlot::~vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x80): undefined reference tovpCameraParameters::~vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0xa6): undefined reference to vpServo::~vpServo()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0xb3): undefined reference tovpDisplayX::~vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x10d): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x11a): undefined reference toros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x1d5): undefined reference to ros::NodeHandle::~NodeHandle()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x223): undefined reference tovpPlot::~vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x230): undefined reference to vpCameraParameters::~vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x256): undefined reference tovpServo::~vpServo()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x263): undefined reference to vpDisplayX::~vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x311): undefined reference toros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x31e): undefined reference to ros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x1a1): undefined reference toros::NodeHandle::~NodeHandle()' collect2: error: ld returned 1 exit status make[2]: ** [/home/grasp/catkin_ws/devel/lib/project_vs/IBVS_PointsBased_gazebo] Error 1 make[1]: [visualServoing_ROSProject/IBVS_PointsBased/CMakeFiles/IBVS_PointsBased_gazebo.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... Linking CXX executable /home/grasp/catkin_ws/devel/lib/testvisp/vs_cpp [100%] Built target IBVS_PointsBased [100%] Built target vs_cpp make: [all] Error 2 Invoking "make -j8 -l8" failed

PamirGhimire commented 6 years ago

from what I see, I think you should try to install visp for ros something like this : sudo apt-get install ros-indigo-visp ros-indigo-visp-*

On Wed, Feb 7, 2018 at 4:12 PM, aarontan94 notifications@github.com wrote:

Thank you for your prompt response. Here is what I get when I tried to do catkin_make..

CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::initPlotter()': pointsBasedIBVS_gazebo.cpp:(.text+0x8c): undefined reference tovpPlot::init(unsigned int, unsigned int, unsigned int, int, int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xc6): undefined reference to vpPlot::setTitle(unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xfe): undefined reference tovpPlot::setTitle(unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x123): undefined reference to vpPlot::initGraph(unsigned int, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x135): undefined reference tovpPlot::initGraph(unsigned int, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x156): undefined reference to vpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x190): undefined reference tovpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1ca): undefined reference to vpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x204): undefined reference tovpPlot::setLegend(unsigned int, unsigned int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x23e): undefined reference to vpPlot::setLegend(unsigned int, unsigned int, std::string const&)' CMakeFiles/IBVSPointsBased gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: pointsBasedIBVS_gazebo.cpp:(.text+0x273): more undefined references tovpPlot::setLegend(unsigned int, unsigned int, std::string const&)' follow CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::getIbvsVel()': pointsBasedIBVS_gazebo.cpp:(.text+0x891): undefined reference tovpServo::computeControlLaw()' pointsBasedIBVS_gazebo.cpp:(.text+0x8a5): undefined reference to vpColVector::operator=(vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x9cf): undefined reference tovpColVector::operator=(vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xcf2): undefined reference to vpPlot::plot(unsigned int, double, vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xd43): undefined reference tovpPlot::plot(unsigned int, double, vpColVector const&)' pointsBasedIBVS_gazebo.cpp:(.text+0xe61): undefined reference to vpException::vpException(int, char const, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xe6b): undefined reference totypeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text+0xea6): undefined reference to vpException::vpException(int, char const, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xeb0): undefined reference totypeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text+0xee9): undefined reference to vpException::vpException(int, char const, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xef3): undefined reference totypeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text+0xf26): undefined reference to vpException::vpException(int, char const, ...)' pointsBasedIBVS_gazebo.cpp:(.text+0xf30): undefined reference totypeinfo for vpException' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::getCurrentFeatures(sensormsgs::Image<std::allocator

const&)': pointsBasedIBVS_gazebo.cpp:(.text+0x1153): undefined reference tovisp_bridge::toVispImage(sensormsgs::Image const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1247): undefined reference to vpDisplay::display(vpImage const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1285): undefined reference tovpDot2::track(vpImage const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x12b5): undefined reference to vpDot2::track(vpImage<unsigned char> const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x12e5): undefined reference tovpDot2::track(vpImage const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1315): undefined reference to vpDot2::track(vpImage<unsigned char> const&, vpImagePoint&)' pointsBasedIBVS_gazebo.cpp:(.text+0x140a): undefined reference tovpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x1418): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x1428): undefined reference to vpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x143a): undefined reference to vpBasicFeature::vpBasicFeature(vpBasicFeature const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1458): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x1466): undefined reference to vpBasicFeature::vpBasicFeature(vpBasicFeature const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1488): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x1656): undefined reference to vtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x165b): undefined reference tovpBasicFeature::~vpBasicFeature()' pointsBasedIBVS_gazebo.cpp:(.text+0x1669): undefined reference to vtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x166e): undefined reference tovpBasicFeature::~vpBasicFeature()' pointsBasedIBVS_gazebo.cpp:(.text+0x1694): undefined reference to vpDisplay::flush(vpImage const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x16be): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x16da): undefined reference to vpDot2::initTracking(vpImage const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x173e): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x1767): undefined reference to vpDot2::initTracking(vpImage const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x178e): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x17b7): undefined reference to vpDot2::initTracking(vpImage const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x17de): undefined reference tovpDisplay::getClick(vpImage const&, vpImagePoint&, bool)' pointsBasedIBVS_gazebo.cpp:(.text+0x1807): undefined reference to vpDot2::initTracking(vpImage const&, vpImagePoint const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x1908): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x190d): undefined reference to vpBasicFeature::~vpBasicFeature()' pointsBasedIBVS_gazebo.cpp:(.text+0x191b): undefined reference tovtable for vpFeaturePoint' pointsBasedIBVS_gazebo.cpp:(.text+0x1920): undefined reference to vpBasicFeature::~vpBasicFeature()' CMakeFiles/IBVSPointsBased gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::vispIbvs()': pointsBasedIBVS_gazebo.cpp:(.text+0x1a3f): undefined reference to ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less, std::allocator<std::pair<std::string const, std::string> > > const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x1af7): undefined reference tovpDot2::vpDot2()' pointsBasedIBVS_gazebo.cpp:(.text+0x1b66): undefined reference to vpDisplayX::vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text+0x1b75): undefined reference to vpServo::vpServo()' pointsBasedIBVS_gazebo.cpp:(.text+0x1bc8): undefined reference to vpCameraParameters::vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text+0x1bdc): undefined reference tovpPlot::vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text+0x1c37): undefined reference to vpFeaturePoint::vpFeaturePoint()' pointsBasedIBVS_gazebo.cpp:(.text+0x1c61): undefined reference tovpFeaturePoint::vpFeaturePoint()' pointsBasedIBVS_gazebo.cpp:(.text+0x1cef): undefined reference to vpCameraParameters::initPersProjWithoutDistortion(double, double, double, double)' pointsBasedIBVS_gazebo.cpp:(.text+0x20b8): undefined reference to ros::NodeHandle::subscribe(ros::SubscribeOptions&)' pointsBasedIBVS_gazebo.cpp:(.text+0x210a): undefined reference to ros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text+0x267d): undefined reference toros::NodeHandle::advertise(ros::AdvertiseOptions&)' pointsBasedIBVS_gazebo.cpp:(.text+0x26ca): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text+0x280d): undefined reference to vpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x281a): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x282a): undefined reference to vpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x283f): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x286b): undefined reference to vpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2878): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2888): undefined reference to vpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x289f): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x28cb): undefined reference to vpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x28d8): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x28e8): undefined reference to vpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x28ff): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x292b): undefined reference to vpFeaturePoint::set_x(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2938): undefined reference to vpFeaturePoint::set_y(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x2948): undefined reference to vpFeaturePoint::set_Z(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x295f): undefined reference to vpServo::addFeature(vpBasicFeature&, vpBasicFeature&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text+0x2992): undefined reference tovpDisplayX::init(vpImage&, int, int, std::string const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x2a11): undefined reference to vpServo::setServo(vpServo::vpServoType const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x2a3a): undefined reference tovpServo:: setInteractionMatrixType(vpServo::vpServoIteractionMatrixType const&, vpServo::vpServoInversionType const&)' pointsBasedIBVS_gazebo.cpp:(.text+0x2a4e): undefined reference to vpAdaptiveGain::initFromConstant(double)' pointsBasedIBVS_gazebo.cpp:(.text+0x3158): undefined reference tovpPlot::~vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text+0x3162): undefined reference to vpCameraParameters::~vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text+0x3181): undefined reference tovpServo::~vpServo()' pointsBasedIBVS_gazebo.cpp:(.text+0x318b): undefined reference to vpDisplayX::~vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text+0x31d3): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text+0x31df): undefined reference to ros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text+0x31fd): undefined reference toros::NodeHandle::~NodeHandle()' pointsBasedIBVS_gazebo.cpp:(.text+0x3479): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text+0x3626): undefined reference to ros::Subscriber::~Subscriber()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vpException::~vpException()': pointsBasedIBVS_gazebo.cpp:(. text._ZN11vpExceptionD2Ev[_ZN11vpExceptionD5Ev]+0xf): undefined reference tovtable for vpException' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vpException::~vpException()': pointsBasedIBVS_gazebo.cpp:(. text._ZN11vpExceptionD0Ev[_ZN11vpExceptionD0Ev]+0xf): undefined reference tovtable for vpException' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function ros::SerializedMessage ros::serialization:: serializeMessage<geometrymsgs::Twist<std::allocator > (geometrymsgs::Twist<std::allocator > const&)': pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16seriali zeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT[ ZN3ros13serialization16serializeMessageIN13geometry msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT]+0xbd): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text. ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT [ ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT ]+0x1b1): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16seriali zeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT[ ZN3ros13serialization16serializeMessageIN13geometry msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT]+0x1c1): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text. ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT [ ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT ]+0x1d1): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros13serialization16seriali zeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT[ ZN3ros13serialization16serializeMessageIN13geometry msgs6Twist_ISaIvEEEEENS17SerializedMessageERKT]+0x1e1): undefined reference toros::serialization::throwStreamOverrun()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/ pointsBasedIBVS_gazebo.cpp.o:pointsBasedIBVS_gazebo.cpp:(.text. ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT [ ZN3ros13serialization16serializeMessageIN13geometry_msgs6Twist_ISaIvEEEEENS_17SerializedMessageERKT ]+0x1f1): more undefined references to ros::serialization::throwStreamOverrun()' follow CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionvoid ros::Publisher::publish<geometrymsgs::Twist<std::allocator

(geometrymsgs::Twist const&) const': pointsBasedIBVS_gazebo.cpp:(.text. ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT[ ZNK3ros9Publisher7publishIN13geometry_msgs6Twist_ISaIvEEEEEvRKT]+0x15): undefined reference to ros::Publisher::Impl::isValid() const' pointsBasedIBVS_gazebo.cpp:(.text._ZNK3ros9Publisher7publishIN13g eometry_msgs6TwistISaIvEEEEEvRKT[_ZNK3ros9Publisher7publishIN13g eometry_msgs6TwistISaIvEEEEEvRKT]+0xb5): undefined reference to ros::Publisher::publish(boost::function<ros::SerializedMessage ()> const&, ros::SerializedMessage&) const' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vpImage::init(unsigned int, unsigned int)': pointsBasedIBVS_gazebo.cpp:(.text._ZN7vpImageIhE4initEjj[_ZN7vpImageIhE4initEjj]+0x103): undefined reference tovpException::vpException(int, char const, ...)' pointsBasedIBVS_gazebo.cpp:(.text._ZN7vpImageIhE4initEjj[_ZN7vpImageIhE4initEjj]+0x10d): undefined reference to typeinfo for vpException' pointsBasedIBVS_gazebo.cpp:(.text._ZN7vpImageIhE4initEjj[_ZN7vpImageIhE4initEjj]+0x133): undefined reference tovpException::vpException(int, char const, ...)' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function ros::SubscriptionCallbackHelperT<sensormsgs::Image<std::allocator const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)': pointsBasedIBVSgazebo.cpp:(.text. ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDe serializeParamsE[_ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE]+0x341): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x359): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x369): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x379): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x3c0): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x3d2): undefined reference to ros::console::g_initialized' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x421): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x431): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x441): undefined reference toros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x451): undefined reference to ros::serialization::throwStreamOverrun()' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x461): undefined reference toros::serialization::throwStreamOverrun()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/ pointsBasedIBVS_gazebo.cpp.o:pointsBasedIBVSgazebo.cpp:(.text. ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDe serializeParamsE[ZN3ros27SubscriptionCallbackHelperTIRKN11sensor_msgs6Image_ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x541): more undefined references to ros::serialization::throwStreamOverrun()' follow CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionros::SubscriptionCallbackHelperT<sensor_msgs::Image<std::allocator const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)': pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x6bd): undefined reference to ros::console::print(ros::console::FilterBase, void, ros::console::levels::Level, char const, int, char const, char const, ...)' pointsBasedIBVSgazebo.cpp:(.text. ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDe serializeParamsE[_ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE]+0x6e7): undefined reference toros::console::initializeLogLocation(ros::console::LogLocation, std::string const&, ros::console::levels::Level)' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x70b): undefined reference to ros::console::setLogLocationLevel(ros::console::LogLocation, ros::console::levels::Level)' pointsBasedIBVSgazebo.cpp:(.text. ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDe serializeParamsE[_ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE]+0x715): undefined reference toros::console::checkLogLocationEnabled(ros:: console::LogLocation)' pointsBasedIBVS_gazebo.cpp:(.text._ZN3ros27SubscriptionCallbackHe lperTIRKN11sensor_msgs6ImageISaIvEEEvE11deserializeERKNS 43SubscriptionCallbackHelperDeserializeParamsE[_ ZN3ros27SubscriptionCallbackHelperTIRKN11sensormsgs6Image ISaIvEEEvE11deserializeERKNS_43SubscriptionCallbackHelperDeserializeParamsE]+0x71f): undefined reference to ros::console::initialize()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In functionmain': pointsBasedIBVS_gazebo.cpp:(.text.startup+0x94): undefined reference to ros::init(int&, char, std::string const&, unsigned int)' pointsBasedIBVS_gazebo.cpp:(.text.startup+0xd4): undefined reference toros::spin()' CMakeFiles/IBVS_PointsBased_gazebo.dir/scripts/pointsBasedIBVS_gazebo.cpp.o: In function vispIbvs::~vispIbvs()': pointsBasedIBVS_gazebo.cpp:(. text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x73): undefined reference to vpPlot::~vpPlot()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x80): undefined reference to vpCameraParameters::~vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0xa6): undefined reference tovpServo::~vpServo()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0xb3): undefined reference to vpDisplayX::~vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x10d): undefined reference toros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x11a): undefined reference to ros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x1d5): undefined reference toros::NodeHandle::~NodeHandle()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x223): undefined reference to vpPlot::~vpPlot()' pointsBasedIBVS_gazebo.cpp:(. text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x230): undefined reference to vpCameraParameters::~vpCameraParameters()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x256): undefined reference to vpServo::~vpServo()' pointsBasedIBVS_gazebo.cpp:(. text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x263): undefined reference to vpDisplayX::~vpDisplayX()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x311): undefined reference to ros::Publisher::~Publisher()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x31e): undefined reference toros::Subscriber::~Subscriber()' pointsBasedIBVS_gazebo.cpp:(.text._ZN8vispIbvsD2Ev[_ZN8vispIbvsD5Ev]+0x1a1): undefined reference to `ros::NodeHandle::~NodeHandle()' collect2: error: ld returned 1 exit status make[2]: ** [/home/grasp/catkin_ws/devel/lib/project_vs/IBVS_PointsBased_gazebo] Error 1 make[1]: [visualServoing_ROSProject/IBVS_PointsBased/CMakeFiles/ IBVS_PointsBased_gazebo.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... Linking CXX executable /home/grasp/catkin_ws/devel/lib/testvisp/vs_cpp [100%] Built target IBVS_PointsBased [100%] Built target vs_cpp make: [all] Error 2 Invoking "make -j8 -l8" failed

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PamirGhimire/visualServoing_ROSProject/issues/1#issuecomment-363799519, or mute the thread https://github.com/notifications/unsubscribe-auth/ALcGIfoXN6zSB9CL0iEomNrXRUv0bUrqks5tSb1ygaJpZM4R82JG .

aarontan-git commented 6 years ago

I have done that already but it is still not working I am trying to run a simulation of the point based IBVS with turtlebot in gazebo

aarontan-git commented 6 years ago

I have found the solution.

For the people interested in working with this package in the future, you can only install one folder at a time, there are issues with IBVS QR based and Posed Based package as of now (will post comments in the future regarding these two packages if I find a way to fix the problems).

I am working with the IBVS Points Based package in particular. For IBVS Points Based, you have to change some things in the following part of the IBVS points based cmake list (starting at line 151), you have to add "_gazebo" to the end of "IBVS_PointsBased" in both the target_link_libraries and add_dependencies lines. This is what it should look like. This should allow you to run the simulation with no error.

add_executable(IBVS_PointsBased_gazebo scripts/pointsBasedIBVS_gazebo.cpp) target_link_libraries(IBVS_PointsBased_gazebo ${catkin_LIBRARIES} ) add_dependencies(IBVS_PointsBased_gazebo project_vs)

AnukritiSinghh commented 2 years ago

Thanks @aarontan-git, this worked for me as well!

AnukritiSinghh commented 2 years ago

I have ros melodic which now gets only turtulebot3, so do you know if this works with that too?

AnukritiSinghh commented 2 years ago

I use turtulebot3 to run this program, but I see black screens. Can you please help me? image