Giter Site home page Giter Site logo

koide3 / monocular_person_following Goto Github PK

View Code? Open in Web Editor NEW
173.0 7.0 46.0 885 KB

Monocular camera-based person tracking and identification ROS framework for person following robots

CMake 3.15% Python 39.61% C++ 43.17% Dockerfile 11.09% Shell 2.98%
person-following-robot person-identification people-tracker person-tracking jetson-tx2 ros jetson-xavier

monocular_person_following's Introduction

monocular_person_following

This package provides a monocular vision-based person tracking and identification framework for person following robots. It first detects people using tf-pose-estimation, and then track them in the robot space with Unscented Kalman filter with the ground plane information. The combination of Convolutional Channel Features and Online Boosting runs on the top of the tracking module to keep tracking the target person with a re-identification capability. The entire system is designed so that it can be run on a Jetson TX2/Xavier, and it can easily be reproduced and reused on a new mobile robot platform.

system

[video]

Codacy Badge Build

Dependencies

  • dlib
  • flann
  • tensorflow
  • tf-pose-estimation

Quick Test

screenshot

Install

We tested this package on Xavier/Jetpack 4.5.1
Note: We recommend using docker to avod the painful installation process

Setup your own person following robot

[Setup your robot]

Related packages

Papers

  • Kenji Koide, Jun Miura, and Emanuele Menegatti, Monocular Person Tracking and Identification with Online Deep Feature Selection for Person Following Robots, Robotics and Autonomous Systems [link].

  • Kenji Koide and Jun Miura, Convolutional Channel Features-based Person Identification for Person Following Robots, 15th International Conference IAS-15, Baden-Baden, Germany, 2018 [link].

monocular_person_following's People

Contributors

koide3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

monocular_person_following's Issues

Troubles installing on ROS Melodic

Hi,

I am trying to install the package on a PC with ROS Melodic, following these instructions. At the first building I got:

Errors     << monocular_person_following:make /home/tiago/panoramicVideo3_ws/logs/monocular_person_following/build.make.000.log
In file included from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/tracklet.hpp:10:0,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/context.hpp:10,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/reid_state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/src/monocular_person_following/state/reid_state.cpp:1:
/home/tiago/panoramicVideo3_ws/devel/.private/monocular_people_tracking/include/monocular_people_tracking/Track.h:20:10: fatal error: tfpose_ros/Person.h: No such file or directory
 #include <tfpose_ros/Person.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/tracklet.hpp:10:0,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/context.hpp:10,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/tracking_state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/src/monocular_person_following/state/tracking_state.cpp:1:
/home/tiago/panoramicVideo3_ws/devel/.private/monocular_people_tracking/include/monocular_people_tracking/Track.h:20:10: fatal error: tfpose_ros/Person.h: No such file or directory
 #include <tfpose_ros/Person.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/tracklet.hpp:10:0,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/context.hpp:10,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/initial_state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/src/monocular_person_following/state/initial_state.cpp:1:
/home/tiago/panoramicVideo3_ws/devel/.private/monocular_people_tracking/include/monocular_people_tracking/Track.h:20:10: fatal error: tfpose_ros/Person.h: No such file or directory
 #include <tfpose_ros/Person.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/state/reid_state.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/state/tracking_state.cpp.o] Error 1
make[2]: *** [CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/state/initial_state.cpp.o] Error 1
In file included from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/tracklet.hpp:10:0,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/context.hpp:10,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/state/initial_training_state.hpp:4,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/src/monocular_person_following/state/initial_training_state.cpp:1:
/home/tiago/panoramicVideo3_ws/devel/.private/monocular_people_tracking/include/monocular_people_tracking/Track.h:20:10: fatal error: tfpose_ros/Person.h: No such file or directory
 #include <tfpose_ros/Person.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/tracklet.hpp:10:0,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/include/monocular_person_following/context.hpp:10,
                 from /home/tiago/panoramicVideo3_ws/src/monocular_person_following/src/monocular_person_following/context.cpp:1:
/home/tiago/panoramicVideo3_ws/devel/.private/monocular_people_tracking/include/monocular_people_tracking/Track.h:20:10: fatal error: tfpose_ros/Person.h: No such file or directory
 #include <tfpose_ros/Person.h>
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/state/initial_training_state.cpp.o] Error 1
make[2]: *** [CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o] Error 1
/home/tiago/panoramicVideo3_ws/src/monocular_person_following/src/monocular_person_following_node.cpp:19:10: fatal error: tfpose_ros/Persons.h: No such file or directory
 #include <tfpose_ros/Persons.h>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/monocular_person_following_node.dir/all] Error 2
make: *** [all] Error 2
cd /home/tiago/panoramicVideo3_ws/build/monocular_person_following; catkin build --get-env monocular_person_following | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

To fix the linking problems, I have modified the panoramicVideo3_ws/src/monocular_person_following/CMakeLists.txt (and package.xml respectively) as follow:

find_package(catkin REQUIRED
  tf
  rospy
  roscpp
  cv_bridge
  message_filters
  image_transport
  eigen_conversions
  message_generation
  ccf_person_identification
  monocular_people_tracking

  tfpose_ros                   <<<<<<<<
  open_face_recognition                   <<<<<<<<
)

# set dlib directory to DLIB_ROOT                   <<<<<<<<
include($ENV{DLIB_ROOT}/dlib/cmake)                   <<<<<<<<

...

target_link_libraries(monocular_person_following_node
  ${catkin_LIBRARIES}
  dlib::dlib                   <<<<<<<<
)

But I got stuck with the following error and I don't know how to fix it:

Errors     << monocular_person_following:make /home/tiago/panoramicVideo3_ws/logs/monocular_person_following/build.make.001.log
CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: In function `flann::serialization::SaveArchive::initBlock()':
context.cpp:(.text._ZN5flann13serialization11SaveArchive9initBlockEv[_ZN5flann13serialization11SaveArchive9initBlockEv]+0x47): undefined reference to `LZ4_resetStreamHC'
CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: In function `flann::serialization::SaveArchive::flushBlock()':
context.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0x44): undefined reference to `LZ4_compress_HC_continue'
context.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0xbc): undefined reference to `LZ4_compress_HC_continue'
CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: In function `flann::serialization::LoadArchive::decompressAndLoadV10(_IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE[_ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE]+0xd0): undefined reference to `LZ4_decompress_safe'
CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: In function `flann::serialization::LoadArchive::loadBlock(char*, unsigned long, _IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE[_ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE]+0x45): undefined reference to `LZ4_decompress_safe_continue'
CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: In function `flann::serialization::LoadArchive::initBlock(_IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE[_ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE]+0xbd): undefined reference to `LZ4_setStreamDecode'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/tiago/panoramicVideo3_ws/devel/.private/monocular_person_following/lib/monocular_person_following/monocular_person_following_node] Error 1
make[1]: *** [CMakeFiles/monocular_person_following_node.dir/all] Error 2
make: *** [all] Error 2
cd /home/tiago/panoramicVideo3_ws/build/monocular_person_following; catkin build --get-env monocular_person_following | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

Can you help me, please? Thank you in advance!

monocular_following_node doens't work

Thank you for your excellent work!
rosgraph

I try to launch that package in gazebo and i am using turtlebot3 waffle_pi for that goal
Unfortunately,topics of monocular following node don't publish information about target for robot_controller
turtlebot3 has got 1 LRF,but in your paper was described two LRF's , but tracking node have found neck and angle successfully with 1 LRF
image

image

Visualization node shows correct image and monocular_person_following/feautures shows nothing

image

So,question is:
Is output of command rosrun rqt_graph rqt_graph correct and what is possible reason?

ImportError: dynamic module does not define init function (init_tf2)

When I run robot_controller.py in docker ,I got this error
Traceback (most recent call last):
File "/root/catkin_ws/src/monocular_person_following/scripts/robot_controller.py", line 2, in
import tf
File "/opt/ros/noetic/lib/python3/dist-packages/tf/init.py", line 30, in
from tf2_ros import TransformException as Exception, ConnectivityException, LookupException, ExtrapolationException
File "/opt/ros/noetic/lib/python3/dist-packages/tf2_ros/init.py", line 38, in
from tf2_py import *
File "/opt/ros/noetic/lib/python3/dist-packages/tf2_py/init.py", line 38, in
from ._tf2 import *
ImportError: dynamic module does not define init function (init_tf2)
could you help me to solve it?Thank you very much!

Build fails linking OpenCV on AGX Orin

Hello! Thank you for this great project. I'm trying to build from source on the Jetson Orin platform using the Install from Source instructions. After invoking catkin_make I'm running in to this error linking:

[ 92%] Linking CXX executable /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/monocular_person_following/monocular_person_following_node
/usr/bin/ld: CMakeFiles/monocular_people_tracking_node.dir/src/monocular_people_tracking_node.cpp.o: in function `monocular_people_tracking::MonocularPeopleTrackingNode::visualize(cv::Mat const&, std::vector<std::shared_ptr<monocular_people_tracking::Observation>, std::allocator<std::shared_ptr<monocular_people_tracking::Observation> > > const&) const':
monocular_people_tracking_node.cpp:(.text._ZNK25monocular_people_tracking27MonocularPeopleTrackingNode9visualizeERKN2cv3MatERKSt6vectorISt10shared_ptrINS_11ObservationEESaIS8_EE[_ZNK25monocular_people_tracking27MonocularPeopleTrackingNode9visualizeERKN2cv3MatERKSt6vectorISt10shared_ptrINS_11ObservationEESaIS8_EE]+0x84): undefined reference to `cv::Mat::Mat(cv::Size_<int>, int, cv::Scalar_<double> const&)'
/usr/bin/ld: CMakeFiles/monocular_people_tracking_node.dir/src/monocular_people_tracking_node.cpp.o: in function `monocular_people_tracking::MonocularPeopleTrackingNode::poses_callback(boost::shared_ptr<tfpose_ros::Persons_<std::allocator<void> > const> const&)':
monocular_people_tracking_node.cpp:(.text._ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE[_ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE]+0x2c4): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: monocular_people_tracking_node.cpp:(.text._ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE[_ZN25monocular_people_tracking27MonocularPeopleTrackingNode14poses_callbackERKN5boost10shared_ptrIKN10tfpose_ros8Persons_ISaIvEEEEE]+0x2e8): undefined reference to `cv::Mat::Mat()'
collect2: error: ld returned 1 exit status
make[2]: *** [monocular_people_tracking/CMakeFiles/monocular_people_tracking_node.dir/build.make:212: /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/monocular_people_tracking/monocular_people_tracking_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:2195: monocular_people_tracking/CMakeFiles/monocular_people_tracking_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: warning: libopencv_features2d.so.4.2, needed by /usr/lib/aarch64-linux-gnu/libopencv_calib3d.so.4.2.0, may conflict with libopencv_features2d.so.3.3
/usr/bin/ld: warning: libopencv_imgproc.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_imgproc.so.4.2
/usr/bin/ld: warning: libopencv_core.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_core.so.4.2
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::ChannelExtractorLUV::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_[_ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::vector(unsigned long, std::allocator<cv::Mat> const&)':
ccf_person_identification_test.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EEC2EmRKS2_[_ZNSt6vectorIN2cv3MatESaIS1_EEC5EmRKS2_]+0x68): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x58): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x60): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x158): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o:ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x160): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x230): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `ccf_person_classifier::BodyClassifier::visualize() const':
ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x1cc): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x20c): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x4f4): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x680): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x6c0): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x7b4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `std::__detail::_Map_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
ccf_person_identification_test.cpp:(.text._ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_[_ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_]+0xdc): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_default_append(unsigned long)':
ccf_person_identification_test.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0x6c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o:ccf_person_identification_test.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0xe4): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::AhmedSubnet<10, 10>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
ccf_person_identification_test.cpp:(.text._ZN3cvk11AhmedSubnetILi10ELi10EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi10ELi10EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x1c0): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::CNNChannelExtractor<10, 10>::extract(cv::Mat const&, cv::Mat const&) const':
ccf_person_identification_test.cpp:(.text._ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_[_ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::AhmedSubnet<20, 25>::forward(cv::Mat const&)':
ccf_person_identification_test.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE[_ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE]+0x368): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `cvk::AhmedSubnet<20, 25>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
ccf_person_identification_test.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi20ELi25EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x2a8): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o: in function `main':
ccf_person_identification_test.cpp:(.text.startup+0x590): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x610): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x68c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x72c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: ccf_person_identification_test.cpp:(.text.startup+0x734): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/ccf_person_identification_test.dir/src/ccf_person_identification_test.cpp.o:ccf_person_identification_test.cpp:(.text.startup+0x754): more undefined references to `cv::Mat::Mat()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [ccf_person_identification/CMakeFiles/ccf_person_identification_test.dir/build.make:206: /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/ccf_person_identification/ccf_person_identification_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:1687: ccf_person_identification/CMakeFiles/ccf_person_identification_test.dir/all] Error 2
/usr/bin/ld: warning: libopencv_imgcodecs.so.4.2, needed by /opt/ros/noetic/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.3.3
/usr/bin/ld: warning: libopencv_features2d.so.4.2, needed by /usr/lib/aarch64-linux-gnu/libopencv_calib3d.so.4.2.0, may conflict with libopencv_features2d.so.3.3
/usr/bin/ld: warning: libopencv_imgproc.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_imgproc.so.4.2
/usr/bin/ld: warning: libopencv_core.so.3.3, needed by /usr/local/lib/libopencv_features2d.so.3.3.1, may conflict with libopencv_core.so.4.2
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `monocular_person_following::Context::visualize_body_features()':
context.cpp:(.text+0x1a48): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text+0x1a84): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `monocular_person_following::Context::extract_features(cv::Mat const&, std::unordered_map<long, std::shared_ptr<monocular_person_following::Tracklet>, std::hash<long>, std::equal_to<long>, std::allocator<std::pair<long const, std::shared_ptr<monocular_person_following::Tracklet> > > >&)':
context.cpp:(.text+0x1bac): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text+0x1bb4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text+0x1bd4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text+0x1c6c): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::SaveArchive::initBlock()':
context.cpp:(.text._ZN5flann13serialization11SaveArchive9initBlockEv[_ZN5flann13serialization11SaveArchive9initBlockEv]+0x50): undefined reference to `LZ4_resetStreamHC'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::SaveArchive::flushBlock()':
context.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0x48): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann13serialization11SaveArchive10flushBlockEv[_ZN5flann13serialization11SaveArchive10flushBlockEv]+0xd8): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::LoadArchive::decompressAndLoadV10(_IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE[_ZN5flann13serialization11LoadArchive20decompressAndLoadV10EP8_IO_FILE]+0xc0): undefined reference to `LZ4_decompress_safe'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::LoadArchive::loadBlock(char*, unsigned long, _IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE[_ZN5flann13serialization11LoadArchive9loadBlockEPcmP8_IO_FILE]+0x58): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::serialization::LoadArchive::initBlock(_IO_FILE*)':
context.cpp:(.text._ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE[_ZN5flann13serialization11LoadArchive9initBlockEP8_IO_FILE]+0xac): undefined reference to `LZ4_setStreamDecode'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::ChannelExtractorLUV::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_[_ZNK3cvk19ChannelExtractorLUV7extractERKN2cv3MatES4_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::vector(unsigned long, std::allocator<cv::Mat> const&)':
context.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EEC2EmRKS2_[_ZNSt6vectorIN2cv3MatESaIS1_EEC5EmRKS2_]+0x68): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x54): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x5c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x158): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x160): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::ChannelExtractorGrads::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_[_ZNK3cvk21ChannelExtractorGrads7extractERKN2cv3MatES4_]+0x230): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `ccf_person_classifier::BodyClassifier::visualize() const':
context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x1cc): undefined reference to `cv::Mat::Mat(int, int, int, cv::Scalar_<double> const&)'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x20c): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x4f4): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x680): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x6c0): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: context.cpp:(.text._ZNK21ccf_person_classifier14BodyClassifier9visualizeEv[_ZNK21ccf_person_classifier14BodyClassifier9visualizeEv]+0x7b4): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `std::__detail::_Map_base<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, cv::Mat> >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true>, true>::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)':
context.cpp:(.text._ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_[_ZNSt8__detail9_Map_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS6_N2cv3MatEESaISB_ENS_10_Select1stESt8equal_toIS6_ESt4hashIS6_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb1ELb0ELb1EEELb1EEixEOS6_]+0xdc): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `std::vector<cv::Mat, std::allocator<cv::Mat> >::_M_default_append(unsigned long)':
context.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0x6c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text._ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm[_ZNSt6vectorIN2cv3MatESaIS1_EE17_M_default_appendEm]+0xe4): more undefined references to `cv::Mat::Mat()' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::AhmedSubnet<10, 10>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
context.cpp:(.text._ZN3cvk11AhmedSubnetILi10ELi10EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi10ELi10EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x1c0): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::CNNChannelExtractor<10, 10>::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_[_ZNK3cvk19CNNChannelExtractorILi10ELi10EE7extractERKN2cv3MatES5_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::AhmedSubnet<20, 25>::forward(cv::Mat const&)':
context.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE[_ZN3cvk11AhmedSubnetILi20ELi25EE7forwardERKN2cv3MatE]+0x368): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::AhmedSubnet<20, 25>::AhmedSubnet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
context.cpp:(.text._ZN3cvk11AhmedSubnetILi20ELi25EEC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb[_ZN3cvk11AhmedSubnetILi20ELi25EEC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb]+0x2a8): undefined reference to `cv::Mat::Mat(int, int, int)'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `cvk::CNNChannelExtractor<20, 25>::extract(cv::Mat const&, cv::Mat const&) const':
context.cpp:(.text._ZNK3cvk19CNNChannelExtractorILi20ELi25EE7extractERKN2cv3MatES5_[_ZNK3cvk19CNNChannelExtractorILi20ELi25EE7extractERKN2cv3MatES5_]+0x3c): undefined reference to `cv::Mat::Mat()'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `flann::LshIndex<flann::L2<float> >::saveIndex(_IO_FILE*)':
context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x43c): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x5a4): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x6d4): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE[_ZN5flann8LshIndexINS_2L2IfEEE9saveIndexEP8_IO_FILE]+0x790): undefined reference to `LZ4_compress_HC_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `void flann::serialization::Serializer<std::vector<unsigned long, std::allocator<unsigned long> > >::load<flann::serialization::LoadArchive>(flann::serialization::LoadArchive&, std::vector<unsigned long, std::allocator<unsigned long> >&)':
context.cpp:(.text._ZN5flann13serialization10SerializerISt6vectorImSaImEEE4loadINS0_11LoadArchiveEEEvRT_RS4_[_ZN5flann13serialization10SerializerISt6vectorImSaImEEE4loadINS0_11LoadArchiveEEEvRT_RS4_]+0x118): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `void flann::NNIndex<flann::L2<float> >::serialize<flann::serialization::LoadArchive>(flann::serialization::LoadArchive&)':
context.cpp:(.text._ZN5flann7NNIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann7NNIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x2d8): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o: in function `void flann::LshIndex<flann::L2<float> >::serialize<flann::serialization::LoadArchive>(flann::serialization::LoadArchive&)':
context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x388): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x6e0): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0x9b8): undefined reference to `LZ4_decompress_safe_continue'
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following/context.cpp.o:context.cpp:(.text._ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_[_ZN5flann8LshIndexINS_2L2IfEEE9serializeINS_13serialization11LoadArchiveEEEvRT_]+0xac0): more undefined references to `LZ4_decompress_safe_continue' follow
/usr/bin/ld: CMakeFiles/monocular_person_following_node.dir/src/monocular_person_following_node.cpp.o: in function `monocular_person_following::MonocularPersonFollowingNode::callback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<monocular_people_tracking::TrackArray_<std::allocator<void> > const> const&, boost::shared_ptr<monocular_person_following::FaceDetectionArray_<std::allocator<void> > const> const&)':
monocular_person_following_node.cpp:(.text._ZN26monocular_person_following28MonocularPersonFollowingNode8callbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS2_IKN25monocular_people_tracking11TrackArray_IS5_EEEERKNS2_IKNS_19FaceDetectionArray_IS5_EEEE[_ZN26monocular_person_following28MonocularPersonFollowingNode8callbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS2_IKN25monocular_people_tracking11TrackArray_IS5_EEEERKNS2_IKNS_19FaceDetectionArray_IS5_EEEE]+0x278): undefined reference to `cv::Mat::Mat()'
collect2: error: ld returned 1 exit status
make[2]: *** [monocular_person_following/CMakeFiles/monocular_person_following_node.dir/build.make:363: /home/moca/Desktop/ext_storage/catkin_ws/devel/lib/monocular_person_following/monocular_person_following_node] Error 1
make[1]: *** [CMakeFiles/Makefile2:3221: monocular_person_following/CMakeFiles/monocular_person_following_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Invoking "make -j12 -l12" failed

Question about webcam demo when using GPU

Hello. Thank you for sharing your hard works.

I tried your
https://github.com/koide3/monocular_person_following/wiki/Quick-test-with-USB-cam

and have two questions.

I have tested in below conditions.

ubuntu 20.04 / nvidia 460 / cuda 11.2 / cudnn 8.1.0 / Graphic Card Geforce RTX 3060.

I have tested with below commands.

2

When I run last line

sudo docker run -it --rm \ --net host \ koide3/monocular_person_following:noetic \ roslaunch monocular_person_following jetson_person_following.launch camera_name:=/top_front_camera/qhd allow_growth:=true

Without "--gpus all" all it worked well. (Open Pose have shown up and person tracking worked well also)

3

However when I run with "--gpus all" I have two issues.

  1. Webcam image appears after about 30 minutes.(Is it because RTX 3060? Will it be faster when I use better Graphic Card?)
  2. Image showed up after 30 minutes but it seemed like it couldn't use OpenPose. (below image)

1

At this time, I suspect my low graphic card specification is problem, but I was wondering if there is something else I haven't done.

Thank you again for sharing your hard work and hope to hear from you.

ros_info do not update

When i run this program,i found it always print "do not update" in the terminator.I can't solve this problem.Would you please tell me how to slove it? Very thank you!

Cannot get feature image and MarkerArray in the rviz

Hi, @koide3. When I test the whole monocular_person_following project, I cannot get the feature image and MarkerArray in the rviz, when I use "rostopic echo /monocular_person_following/feature" to show the topic, it says that the topic does not appear to be published yet. I used to think it is something wrong with the problem of ccf module, but it doesn't changed after the ccf module fixed.
Do you have any idea about this?
Also, it seems like there's some problem in the open_face_recognition module, i'm not sure if that's relevant.
Screenshot from 2019-10-29 19-48-49

`monocular_people_tracking_node.cpp`: All detected persons are not valid. Won't transition (update) from InitialState to InittialTrainingState

I'm testing monocular person following on the AGX Orin. The webcam and pose estimation seem to be working but it's stuck in the initial state and will not train. I have a full view of my neck and both ankles.

image

So far all I've been able to figure out is that it thinks every person returned by people_tracker->get_people() is invalid. It's failing this check in create_msgs() in monocular_people_tracking_node.cpp:

image

I haven't been able to get a single valid person. I am running on an AGX Orin with CUDA 11.4, tensorflow 1.15.5 (NVIDIA CUDA build), tf-pose 0.1.1. I am able to build everything with catkin_make and no compilation errors.

@koide3 Any suggestions on why all the people detections are invalid? All I can see is that the correction_count() is not greater than validation_correction_count. Thank you so much for your great work on this project!

Error while calling cudaGetDevice(&the_device_id) 'dlib::cuda_error'

Hello @koide3 ,

thanks for the this great package. I am trying to build from source and successfully build on ros-melodic but whenever I tried to run, I am facing the dlib cuda issue, although I have tried multiple version and also the one you provided but finding no solution. It would be greatly appreciated if someone can help me in this issue.

terminate called after throwing an instance of 'dlib::cuda_error' what(): Error while calling cudaGetDevice(&the_device_id) in file /home/yaman/libs/dlib/dlib/cuda/gpu_data.cpp:204. code: 999, reason: unknown error

Failed to launch tf_openpose when running Docker quick test on AGX Orin

Hi, I'm trying to get the Docker quick test to work on an NVIDIA Jetson AGX Orin. I'm running into this error trying to open libcudart.so.10.2:

moca@ubuntu:~/Desktop/ext_storage$ sudo docker run -it --rm                 --net host                      koide3/monocular_person_following:jp45                 roslaunch monocular_person_following jetson_person_following.launch camera_name:=/top_front_camera/qhd
sourcing   /opt/ros/noetic/setup.bash
ROS_ROOT   /opt/ros/noetic/share/ros
ROS_DISTRO noetic
... logging to /root/.ros/log/c4b629fe-fb5c-11ee-9a78-48b02de4deef/roslaunch-ubuntu-1.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:37301/

SUMMARY
========

PARAMETERS
 * /monocular_people_tracking/association_maha_sq_thresh: 9.0
 * /monocular_people_tracking/association_neck_ankle_max_dist: 200
 * /monocular_people_tracking/association_neck_max_dist: 150
 * /monocular_people_tracking/detection_border_thresh_h: 25
 * /monocular_people_tracking/detection_border_thresh_w: 100
 * /monocular_people_tracking/detection_confidence_thresh: 0.1
 * /monocular_people_tracking/init_cov_scale: 0.25
 * /monocular_people_tracking/measurement_noise_pix_cov: 100
 * /monocular_people_tracking/process_noise_height_cov: 1e-10
 * /monocular_people_tracking/process_noise_pos_cov: 0.03
 * /monocular_people_tracking/process_noise_vel_cov: 0.01
 * /monocular_people_tracking/tracking_newtrack_dist2exists_thersh: 100
 * /monocular_people_tracking/tracking_remove_trace_thresh: 2.0
 * /monocular_person_following/id_switch_detection_thresh: -0.1
 * /monocular_person_following/imprinting_max_dist: 4.0
 * /monocular_person_following/initial_training_num_samples: 10
 * /monocular_person_following/min_target_confidence: 0.1
 * /monocular_person_following/reid_confidence_thresh: 0.1
 * /monocular_person_following/reid_positive_count: 5
 * /monocular_person_following/use_body: True
 * /monocular_person_following/use_face: False
 * /pose_estimator/allow_growth: False
 * /pose_estimator/camera: /top_front_camera...
 * /pose_estimator/model: mobilenet_thin
 * /pose_estimator/resolution: 656x368
 * /rosdistro: noetic
 * /rosversion: 1.15.11
 * /visualization_node/show: False
 * /visualization_node/use_face: False

NODES
  /
    compress_visualize (image_transport/republish)
    monocular_people_tracking (monocular_people_tracking/monocular_people_tracking_node)
    monocular_person_following (monocular_person_following/monocular_person_following_node)
    pose_estimator (tfpose_ros/broadcaster_ros.py)
    simple_gesture_recognition (monocular_person_following/simple_gesture_recognition.py)
    throttle_visualize (topic_tools/throttle)
    visualization_node (monocular_person_following/visualization.py)

ROS_MASTER_URI=http://localhost:11311

process[pose_estimator-1]: started with pid [75]
process[monocular_people_tracking-2]: started with pid [76]
process[monocular_person_following-3]: started with pid [77]
process[visualization_node-4]: started with pid [78]
process[compress_visualize-5]: started with pid [79]
process[throttle_visualize-6]: started with pid [80]
process[simple_gesture_recognition-7]: started with pid [81]
[ INFO] [1713209153.852244116]: construct body classifier
[ INFO] [1713209153.854402206]: add cnn10 to channel bank
--- simple_gesture_recognition ---
wait for service
done
2024-04-15 19:25:55.038606: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.10.2'; dlerror: libcudart.so.10.2: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /root/catkin_ws/devel/lib:/opt/ros/noetic/lib:/usr/local/cuda-10.2/targets/aarch64-linux/lib
2024-04-15 19:25:55.038613: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.10.2'; dlerror: libcudart.so.10.2: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /root/catkin_ws/devel/lib:/opt/ros/noetic/lib:/usr/local/cuda-10.2/targets/aarch64-linux/lib
2024-04-15 19:25:55.038693: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2024-04-15 19:25:55.038695: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2024-04-15 19:25:55.038903: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.10.2'; dlerror: libcudart.so.10.2: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /root/catkin_ws/devel/lib:/opt/ros/noetic/lib:/usr/local/cuda-10.2/targets/aarch64-linux/lib
2024-04-15 19:25:55.038934: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2024-04-15 19:25:55.038943: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.10.2'; dlerror: libcudart.so.10.2: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /root/catkin_ws/devel/lib:/opt/ros/noetic/lib:/usr/local/cuda-10.2/targets/aarch64-linux/lib
2024-04-15 19:25:55.038977: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
================================================================================REQUIRED process [pose_estimator-1] has died!
process has died [pid 75, exit code -11, cmd /root/catkin_ws/src/tf-pose-estimation/scripts/broadcaster_ros.py __name:=pose_estimator __log:=/root/.ros/log/c4b629fe-fb5c-11ee-9a78-48b02de4deef/pose_estimator-1.log].
log file: /root/.ros/log/c4b629fe-fb5c-11ee-9a78-48b02de4deef/pose_estimator-1*.log
Initiating shutdown!
================================================================================
[simple_gesture_recognition-7] killing on exit
[throttle_visualize-6] killing on exit
[compress_visualize-5] killing on exit
[visualization_node-4] killing on exit
[monocular_person_following-3] killing on exit
[monocular_people_tracking-2] killing on exit
[pose_estimator-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

tensorflow version

Hello koide, thanks for your great work. I try to install this project from source on Xavier NX/Jetpack 4.5
When I install the tensorflow with the default command:
sudo pip install -U --extra-index-url https://developer.download.nvidia.com/compute/redist/jp33 tensorflow-gpu
when I import the tensorflow, it prints that the cuda version is not compatible as In Jetpack 4.5 the cuda version is 10.2.

So my question is how to install the right version of tensorflow in order to run this project?
Thanks again for your greak work, like hdl_graph_slam and others hdl_xx_xx which really help me a lot!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.