ROS Melodic Catkin package issue

asked 2019-07-29 08:29:31 -0500

Ajith gravatar image

I am a newbie in ROS development and catkin-workspaces. I am using ROS Melodic full-desktop version in Ubuntu 18.04. In my current project I have a flask app which subscribes to ros topics available through a sample ros bag sent by the client. I am able to subscribe to the topics. The client also sent a catkin cpp library to process the messages subscribed.

For this I installed the c++ package in catkin workspace created from my side(as mentioned here) as the default work-space didn't allow me install the package.

When I tried to import the cpp libraries from my custom cpp library outside catkin_workspace, it is not getting imported.

[Edit]

As an alternative, I installed ROS Melodic via source as mentioned here. When I tried running catkin_make for the cpp package, it is throwing the below error:

/usr/include/flann/util/serialization.h: In instantiation of ‘static void flann::serialization::access::serialize(Archive&, T&) [with Archive = flann::serialization::LoadArchive; T = std::unordered_map<unsigned int,="" std::vector<unsigned="" int=""> >]’: /usr/include/flann/util/serialization.h:41:22: required from ‘void flann::serialization::serialize(Archive&, T&) [with Archive = flann::serialization::LoadArchive; T = std::unordered_map<unsigned int,="" std::vector<unsigned="" int=""> >]’ /usr/include/flann/util/serialization.h:50:33: required from ‘static void flann::serialization::Serializer<t>::load(InputArchive&, T&) [with InputArchive = flann::serialization::LoadArchive; T = std::unordered_map<unsigned int,="" std::vector<unsigned="" int=""> >]’ /usr/include/flann/util/serialization.h:297:28: required from ‘Archive& flann::serialization::InputArchive<archive>::operator&(T&) [with T = std::unordered_map<unsigned int,="" std::vector<unsigned="" int=""> >; Archive = flann::serialization::LoadArchive]’ /usr/include/flann/util/lsh_table.h:319:10: required from ‘void flann::lsh::LshTable<elementtype>::serialize(Archive&) [with Archive = flann::serialization::LoadArchive; ElementType = float]’ /usr/include/flann/util/serialization.h:33:9: required from ‘static void flann::serialization::access::serialize(Archive&, T&) [with Archive = flann::serialization::LoadArchive; T = flann::lsh::LshTable<float>]’ /usr/include/flann/util/serialization.h:41:22: [ skipping 6 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ] /usr/include/flann/util/serialization.h:33:9: required from ‘static void flann::serialization::access::serialize(Archive&, T&) [with Archive = flann::serialization::LoadArchive; T = flann::LshIndex<flann::l2_simple<float> >]’ /usr/include/flann/util/serialization.h:41:22: required from ‘void flann::serialization::serialize(Archive&, T&) [with Archive = flann::serialization::LoadArchive; T = flann::LshIndex<flann::l2_simple<float> >]’ /usr/include/flann/util/serialization.h:50:33: required from ‘static void flann::serialization::Serializer<t>::load(InputArchive&, T&) [with InputArchive = flann::serialization::LoadArchive; T = flann::LshIndex<flann::l2_simple<float> >]’ /usr/include/flann/util/serialization.h:297:28: required from ‘Archive& flann::serialization::InputArchive<archive>::operator&(T&) [with T = flann::LshIndex<flann::l2_simple<float> >; Archive = flann::serialization::LoadArchive]’ /usr/include/flann/algorithms/lsh_index.h:204:9: required from ‘void flann::LshIndex<distance>::loadIndex(FILE*) [with Distance = flann::L2_Simple<float>; FILE = _IO_FILE]’ /opt/catkin_ws/src/cargoeye_common/src/pointcloud_ext.cpp:824:51: required from here /usr/include/flann/util/serialization.h:33:14: error: ‘class std::unordered_map<unsigned int,="" std::vector<unsigned="" int=""> >’ has no member named ‘serialize’ type.serialize(ar); ~~~~~^~~~~~~~~

Any suggestions ... (more)

edit retag flag offensive close merge delete