nvidia-ai-iot / caffe_ros Goto Github PK
View Code? Open in Web Editor NEWPackage containing nodes for deep learning in ROS.
License: BSD 3-Clause "New" or "Revised" License
Package containing nodes for deep learning in ROS.
License: BSD 3-Clause "New" or "Revised" License
Hi
I have flowing error, any chance to support Opencv 3?
CMake Error at /home/nvidia/catkin_ws/src/caffe_ros/caffe_ros/CMakeLists.txt:16 (find_package):
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "2.4.13".
The following configuration files were considered but not accepted:
/usr/local/share/OpenCV/OpenCVConfig.cmake, version: 3.4.3
/usr/share/OpenCV/OpenCVConfig.cmake, version: 3.3.1
Hi there, I am trying to build this on my TX1 but I am having some issues with the OpenCV version.
My current version, taken with head -n 1 /etc/nv_tegra_release
is:
# R24 (release), REVISION: 2.1, GCID: 7791156, BOARD: t210ref, EABI: aarch64, DATE: Thu Sep 29 00:59:21 UTC 2016
And that comes with OpenCV 2.4.9.1 installed. In your CMakeLists.txt you require: 2.4.13
I tried changing it thinking that small jump in versions shouldn't affect that much but when I tried building I got:
[ 12%] Building CXX object caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/caffe_ros_node.cpp.o
[ 25%] Building CXX object caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/tensor_net.cpp.o
[ 37%] Linking CXX executable image_pub_node
[ 62%] Built target output_view
[ 75%] Building CXX object caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/caffe_ros.cpp.o
CMakeFiles/image_pub_node.dir/src/image_pub_node.cpp.o: In function `main':
image_pub_node.cpp:(.text+0xa1c): undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)'
image_pub_node.cpp:(.text+0xa8c): undefined reference to `cv::VideoCapture::read(cv::_OutputArray const&)'
image_pub_node.cpp:(.text+0xad4): undefined reference to `cv::VideoCapture::open(cv::String const&)'
CMakeFiles/image_pub_node.dir/src/image_pub_node.cpp.o: In function `cv::String::String(char const*)':
image_pub_node.cpp:(.text._ZN2cv6StringC2EPKc[_ZN2cv6StringC5EPKc]+0x40): undefined reference to `cv::String::allocate(unsigned long)'
CMakeFiles/image_pub_node.dir/src/image_pub_node.cpp.o: In function `cv::String::~String()':
image_pub_node.cpp:(.text._ZN2cv6StringD2Ev[_ZN2cv6StringD5Ev]+0x10): undefined reference to `cv::String::deallocate()'
CMakeFiles/image_pub_node.dir/src/image_pub_node.cpp.o: In function `cv::String::operator=(cv::String const&)':
image_pub_node.cpp:(.text._ZN2cv6StringaSERKS0_[_ZN2cv6StringaSERKS0_]+0x2c): undefined reference to `cv::String::deallocate()'
collect2: error: ld returned 1 exit status
caffe_ros/image_pub/CMakeFiles/image_pub_node.dir/build.make:113: recipe for target 'caffe_ros/image_pub/image_pub_node' failed
make[2]: *** [caffe_ros/image_pub/image_pub_node] Error 1
CMakeFiles/Makefile2:1144: recipe for target 'caffe_ros/image_pub/CMakeFiles/image_pub_node.dir/all' failed
make[1]: *** [caffe_ros/image_pub/CMakeFiles/image_pub_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:9:0:
/usr/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does not name a type
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:438:42: error: ‘vector’ has not been declared
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:438:48: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:1265:4: error: ‘vector’ does not name a type
vector<Point> locations;
^
/usr/include/opencv2/gpu/gpu.hpp:1266:4: error: ‘vector’ does not name a type
vector<double> confidences;
^
/usr/include/opencv2/gpu/gpu.hpp:1267:4: error: ‘vector’ does not name a type
vector<double> part_scores[4];
^
/usr/include/opencv2/gpu/gpu.hpp:1285:31: error: ‘vector’ does not name a type
void setSVMDetector(const vector<float>& detector);
^
/usr/include/opencv2/gpu/gpu.hpp:1285:37: error: expected ‘,’ or ‘...’ before ‘<’ token
void setSVMDetector(const vector<float>& detector);
^
/usr/include/opencv2/gpu/gpu.hpp:1287:12: error: ‘vector’ does not name a type
static vector<float> getDefaultPeopleDetector();
^
/usr/include/opencv2/gpu/gpu.hpp:1288:12: error: ‘vector’ does not name a type
static vector<float> getPeopleDetector48x96();
^
/usr/include/opencv2/gpu/gpu.hpp:1289:12: error: ‘vector’ does not name a type
static vector<float> getPeopleDetector64x128();
^
/usr/include/opencv2/gpu/gpu.hpp:1291:36: error: ‘vector’ has not been declared
void detect(const GpuMat& img, vector<Point>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1291:42: error: expected ‘,’ or ‘...’ before ‘<’ token
void detect(const GpuMat& img, vector<Point>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:46: error: ‘vector’ has not been declared
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:52: error: expected ‘,’ or ‘...’ before ‘<’ token
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:47: error: ‘vector’ has not been declared
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:53: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:57: error: ‘vector’ has not been declared
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:63: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1835:5: error: ‘vector’ does not name a type
vector<GpuMat> prevPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1836:5: error: ‘vector’ does not name a type
vector<GpuMat> nextPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1838:5: error: ‘vector’ does not name a type
vector<GpuMat> buf_;
^
/usr/include/opencv2/gpu/gpu.hpp:1839:5: error: ‘vector’ does not name a type
vector<GpuMat> unused;
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:10:0,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/caffe_ros.h:9,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/caffe_ros.cpp:4:
/usr/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does not name a type
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:438:42: error: ‘vector’ has not been declared
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:438:48: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:10:0,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/caffe_ros.h:9,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/caffe_ros_node.cpp:4:
/usr/include/opencv2/gpu/gpu.hpp:432:29: error: ‘vector’ does not name a type
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:432:35: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:438:42: error: ‘vector’ has not been declared
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:438:48: error: expected ‘,’ or ‘...’ before ‘<’ token
CV_EXPORTS void split(const GpuMat& src, vector<GpuMat>& dst, Stream& stream = Stream::Null());
^
/usr/include/opencv2/gpu/gpu.hpp:1265:4: error: ‘vector’ does not name a type
vector<Point> locations;
^
/usr/include/opencv2/gpu/gpu.hpp:1266:4: error: ‘vector’ does not name a type
vector<double> confidences;
^
/usr/include/opencv2/gpu/gpu.hpp:1267:4: error: ‘vector’ does not name a type
vector<double> part_scores[4];
^
/usr/include/opencv2/gpu/gpu.hpp:1285:31: error: ‘vector’ does not name a type
void setSVMDetector(const vector<float>& detector);
^
/usr/include/opencv2/gpu/gpu.hpp:1285:37: error: expected ‘,’ or ‘...’ before ‘<’ token
void setSVMDetector(const vector<float>& detector);
^
/usr/include/opencv2/gpu/gpu.hpp:1287:12: error: ‘vector’ does not name a type
static vector<float> getDefaultPeopleDetector();
^
/usr/include/opencv2/gpu/gpu.hpp:1288:12: error: ‘vector’ does not name a type
static vector<float> getPeopleDetector48x96();
^
/usr/include/opencv2/gpu/gpu.hpp:1289:12: error: ‘vector’ does not name a type
static vector<float> getPeopleDetector64x128();
^
/usr/include/opencv2/gpu/gpu.hpp:1291:36: error: ‘vector’ has not been declared
void detect(const GpuMat& img, vector<Point>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1291:42: error: expected ‘,’ or ‘...’ before ‘<’ token
void detect(const GpuMat& img, vector<Point>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:46: error: ‘vector’ has not been declared
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:52: error: expected ‘,’ or ‘...’ before ‘<’ token
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:47: error: ‘vector’ has not been declared
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:53: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:57: error: ‘vector’ has not been declared
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:63: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1835:5: error: ‘vector’ does not name a type
vector<GpuMat> prevPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1836:5: error: ‘vector’ does not name a type
vector<GpuMat> nextPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1838:5: error: ‘vector’ does not name a type
vector<GpuMat> buf_;
^
/usr/include/opencv2/gpu/gpu.hpp:1839:5: error: ‘vector’ does not name a type
vector<GpuMat> unused;
^
/usr/include/opencv2/gpu/gpu.hpp:1265:4: error: ‘vector’ does not name a type
vector<Point> locations;
^
/usr/include/opencv2/gpu/gpu.hpp:1266:4: error: ‘vector’ does not name a type
vector<double> confidences;
^
/usr/include/opencv2/gpu/gpu.hpp:1267:4: error: ‘vector’ does not name a type
vector<double> part_scores[4];
^
/usr/include/opencv2/gpu/gpu.hpp:1285:31: error: ‘vector’ does not name a type
void setSVMDetector(const vector<float>& detector);
^
/usr/include/opencv2/gpu/gpu.hpp:1285:37: error: expected ‘,’ or ‘...’ before ‘<’ token
void setSVMDetector(const vector<float>& detector);
^
/usr/include/opencv2/gpu/gpu.hpp:1287:12: error: ‘vector’ does not name a type
static vector<float> getDefaultPeopleDetector();
^
/usr/include/opencv2/gpu/gpu.hpp:1288:12: error: ‘vector’ does not name a type
static vector<float> getPeopleDetector48x96();
^
/usr/include/opencv2/gpu/gpu.hpp:1289:12: error: ‘vector’ does not name a type
static vector<float> getPeopleDetector64x128();
^
/usr/include/opencv2/gpu/gpu.hpp:1291:36: error: ‘vector’ has not been declared
void detect(const GpuMat& img, vector<Point>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1291:42: error: expected ‘,’ or ‘...’ before ‘<’ token
void detect(const GpuMat& img, vector<Point>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:46: error: ‘vector’ has not been declared
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1295:52: error: expected ‘,’ or ‘...’ before ‘<’ token
void detectMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:47: error: ‘vector’ has not been declared
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1300:53: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidence(const GpuMat& img, vector<Point>& hits, double hit_threshold,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:57: error: ‘vector’ has not been declared
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
/usr/include/opencv2/gpu/gpu.hpp:1303:63: error: expected ‘,’ or ‘...’ before ‘<’ token
void computeConfidenceMultiScale(const GpuMat& img, vector<Rect>& found_locations,
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/caffe_ros.h:9:0,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/caffe_ros.cpp:4:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:104:15: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::DimsCHW in_dims_;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:105:15: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::DimsCHW out_dims_;
^
/usr/include/opencv2/gpu/gpu.hpp:1835:5: error: ‘vector’ does not name a type
vector<GpuMat> prevPyr_;
^
/usr/include/opencv2/gpu/gpu.hpp:1836:5: error: ‘vector’ does not name a type
vector<GpuMat> nextPyr_;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInWidth() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:29:40: error: ‘in_dims_’ was not declared in this scope
int getInWidth() const { return in_dims_.w(); }
^
/usr/include/opencv2/gpu/gpu.hpp:1838:5: error: ‘vector’ does not name a type
vector<GpuMat> buf_;
^
/usr/include/opencv2/gpu/gpu.hpp:1839:5: error: ‘vector’ does not name a type
vector<GpuMat> unused;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInHeight() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:30:40: error: ‘in_dims_’ was not declared in this scope
int getInHeight() const { return in_dims_.h(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInChannels() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:31:40: error: ‘in_dims_’ was not declared in this scope
int getInChannels() const { return in_dims_.c(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutWidth() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:33:41: error: ‘out_dims_’ was not declared in this scope
int getOutWidth() const { return out_dims_.w(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutHeight() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:34:41: error: ‘out_dims_’ was not declared in this scope
int getOutHeight() const { return out_dims_.h(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutChannels() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:35:41: error: ‘out_dims_’ was not declared in this scope
int getOutChannels() const { return out_dims_.c(); }
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/caffe_ros.h:9:0,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/caffe_ros_node.cpp:4:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:104:15: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::DimsCHW in_dims_;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:105:15: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::DimsCHW out_dims_;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInWidth() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:29:40: error: ‘in_dims_’ was not declared in this scope
int getInWidth() const { return in_dims_.w(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInHeight() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:30:40: error: ‘in_dims_’ was not declared in this scope
int getInHeight() const { return in_dims_.h(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInChannels() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:31:40: error: ‘in_dims_’ was not declared in this scope
int getInChannels() const { return in_dims_.c(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutWidth() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:33:41: error: ‘out_dims_’ was not declared in this scope
int getOutWidth() const { return out_dims_.w(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutHeight() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:34:41: error: ‘out_dims_’ was not declared in this scope
int getOutHeight() const { return out_dims_.h(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutChannels() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:35:41: error: ‘out_dims_’ was not declared in this scope
int getOutChannels() const { return out_dims_.c(); }
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:11:0:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:104:15: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::DimsCHW in_dims_;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:105:15: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
nvinfer1::DimsCHW out_dims_;
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInWidth() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:29:40: error: ‘in_dims_’ was not declared in this scope
int getInWidth() const { return in_dims_.w(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInHeight() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:30:40: error: ‘in_dims_’ was not declared in this scope
int getInHeight() const { return in_dims_.h(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getInChannels() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:31:40: error: ‘in_dims_’ was not declared in this scope
int getInChannels() const { return in_dims_.c(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutWidth() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:33:41: error: ‘out_dims_’ was not declared in this scope
int getOutWidth() const { return out_dims_.w(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutHeight() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:34:41: error: ‘out_dims_’ was not declared in this scope
int getOutHeight() const { return out_dims_.h(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h: In member function ‘int caffe_ros::TensorNet::getOutChannels() const’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:35:41: error: ‘out_dims_’ was not declared in this scope
int getOutChannels() const { return out_dims_.c(); }
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp: At global scope:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:19:18: error: ‘DimsCHW’ in namespace ‘nvinfer1’ does not name a type
static nvinfer1::DimsCHW DimsToCHW(nvinfer1::Dims dims)
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp: In member function ‘void caffe_ros::TensorNet::profileModel(caffe_ros::TensorNet::ConstStr&, caffe_ros::TensorNet::ConstStr&, bool, caffe_ros::TensorNet::ConstStr&, std::ostream&)’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:119:5: error: ‘IHostMemory’ is not a member of ‘nvinfer1’
nvinfer1::IHostMemory* model_ptr = engine->serialize();
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:119:28: error: ‘model_ptr’ was not declared in this scope
nvinfer1::IHostMemory* model_ptr = engine->serialize();
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:119:58: error: no matching function for call to ‘nvinfer1::ICudaEngine::serialize()’
nvinfer1::IHostMemory* model_ptr = engine->serialize();
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:5:0:
/usr/include/aarch64-linux-gnu/NvInfer.h:1512:15: note: candidate: virtual void nvinfer1::ICudaEngine::serialize(std::ostream&) const
virtual void serialize(std::ostream& outputStream) const = 0;
^
/usr/include/aarch64-linux-gnu/NvInfer.h:1512:15: note: candidate expects 1 argument, 0 provided
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp: In member function ‘void caffe_ros::TensorNet::loadNetwork(caffe_ros::TensorNet::ConstStr&, caffe_ros::TensorNet::ConstStr&, caffe_ros::TensorNet::ConstStr&, caffe_ros::TensorNet::ConstStr&, bool, bool)’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:169:90: error: no matching function for call to ‘nvinfer1::IRuntime::deserializeCudaEngine(const char*, std::__cxx11::basic_string<char>::size_type, std::nullptr_t)’
engine_ = infer_->deserializeCudaEngine(model_final.c_str(), model_final.size(), nullptr);
^
In file included from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:5:0:
/usr/include/aarch64-linux-gnu/NvInfer.h:1675:33: note: candidate: virtual nvinfer1::ICudaEngine* nvinfer1::IRuntime::deserializeCudaEngine(std::istream&)
virtual nvinfer1::ICudaEngine* deserializeCudaEngine(std::istream& inputStream) = 0;
^
/usr/include/aarch64-linux-gnu/NvInfer.h:1675:33: note: candidate expects 1 argument, 3 provided
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:185:2: error: ‘in_dims_’ was not declared in this scope
in_dims_ = DimsToCHW(engine_->getBindingDimensions(iinp));
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:185:58: error: ‘DimsToCHW’ was not declared in this scope
in_dims_ = DimsToCHW(engine_->getBindingDimensions(iinp));
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:192:2: error: ‘out_dims_’ was not declared in this scope
out_dims_ = DimsToCHW(engine_->getBindingDimensions(iout));
^
In file included from /opt/ros/kinetic/include/ros/ros.h:41:0,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/include/caffe_ros/tensor_net.h:7,
from /home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:11:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp: In member function ‘void caffe_ros::TensorNet::forward(const unsigned char*, size_t, size_t, size_t)’:
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:211:29: error: ‘in_dims_’ was not declared in this scope
ROS_ASSERT(c == (size_t)in_dims_.c());
^
/opt/ros/kinetic/include/ros/assert.h:124:11: note: in definition of macro ‘ROS_ASSERT’
if (!(cond)) { \
^
/home/ubuntu/caffe_ws/src/caffe_ros/caffe_ros/src/tensor_net.cpp:227:39: error: ‘in_dims_’ was not declared in this scope
cv::resize(in_h_, in_h_, cv::Size(in_dims_.w(), in_dims_.h()), 0, 0, cv::INTER_CUBIC);
^
caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/build.make:62: recipe for target 'caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/caffe_ros_node.cpp.o' failed
make[2]: *** [caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/caffe_ros_node.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/build.make:86: recipe for target 'caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/tensor_net.cpp.o' failed
make[2]: *** [caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/tensor_net.cpp.o] Error 1
caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/build.make:110: recipe for target 'caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/caffe_ros.cpp.o' failed
make[2]: *** [caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/src/caffe_ros.cpp.o] Error 1
CMakeFiles/Makefile2:897: recipe for target 'caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/all' failed
make[1]: *** [caffe_ros/caffe_ros/CMakeFiles/caffe_ros_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Base path: /home/ubuntu/caffe_ws
Source space: /home/ubuntu/caffe_ws/src
Build space: /home/ubuntu/caffe_ws/build
Devel space: /home/ubuntu/caffe_ws/devel
Install space: /home/ubuntu/caffe_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ubuntu/caffe_ws/build"
####
####
#### Running command: "make -j4 -l4" in "/home/ubuntu/caffe_ws/build"
####
Invoking "make -j4 -l4" failed
It seems that I might have to update my Jetpack version, do you know any other possible fix??
Hi there, me again, have you been able to launch a gscam node with a nvcamerasrc
?
I said this since my L4T version is low enough that I can't use the v4l2src
to /dev/video0
and also, according to this site it says:
"Starting on L4T R23.2 there is a /dev/video0 node to capture, however, this node will give you frames in bayer which are NOT suitable to encode because it grabs frames directly from the ov5693 camera without using the ISP."
So I think using the nvcamerasrc plugin should give better results? Do you recommend for me to update my L4T and skip this issue and I think the other one I opened? If possible I wouldn't like to update yet.
Hi,
where can I download the prototxts and the caffemodels to initialize the DNNs available in the launch folder?
Thank you
Walter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.