New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
erro in nodelet_imagenet.cpp #107
Comments
Hi @ivory4u, I haven't been maintaining this nodelet, so I would just recommend commenting out lines 85-90 of CMakeLists.txt : ros_deep_learning/CMakeLists.txt Line 85 in a58d696
|
Hi @dusty-nv CMakeFiles/video_source.dir/src/node_video_source.cpp.o: In function |
Hmm...can you try adding ros_deep_learning/CMakeLists.txt Line 79 in a58d696
|
Hi @dusty-nv I use TX1 board and Kinetic of ros version. |
It's been a long time since I tested against Kinetic. Can you also try adding ros_deep_learning/CMakeLists.txt Line 82 in a58d696
|
I just get below error.
How can I fix it?
[ 3%] Building CXX object ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/src/nodelet_imagenet.cpp.o
/home/nvidia/catkin_ws/src/ros_deep_learning/src/nodelet_imagenet.cpp: In member function ‘void ros_deep_learning::ros_imagenet::callback(const ImageConstPtr&)’:
/home/nvidia/catkin_ws/src/ros_deep_learning/src/nodelet_imagenet.cpp:88:121: error: no matching function for call to ‘imageNet::Classify(imageConverter::PixelType*, uint32_t, uint32_t, float*)’
g_class = net->Classify(imgCvt->ImageGPU(), imgCvt->GetWidth(), imgCvt->GetHeight(), &confidence);
^
In file included from /home/nvidia/catkin_ws/src/ros_deep_learning/src/nodelet_imagenet.cpp:2:0:
/usr/local/include/jetson-inference/imageNet.h:154:6: note: candidate: int imageNet::Classify(float*, uint32_t, uint32_t, float*)
int Classify( float* rgba, uint32_t width, uint32_t height, float* confidence=NULL );
^
/usr/local/include/jetson-inference/imageNet.h:154:6: note: no known conversion for argument 1 from ‘imageConverter::PixelType* {aka uchar3*}’ to ‘float*’
/usr/local/include/jetson-inference/imageNet.h:162:6: note: candidate: int imageNet::Classify(float*)
int Classify( float* confidence=NULL );
^
/usr/local/include/jetson-inference/imageNet.h:162:6: note: candidate expects 1 argument, 4 provided
ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/build.make:62: recipe for target 'ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/src/nodelet_imagenet.cpp.o' failed
make[2]: *** [ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/src/nodelet_imagenet.cpp.o] Error 1
CMakeFiles/Makefile2:3624: recipe for target 'ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/all' failed
make[1]: *** [ros_deep_learning/CMakeFiles/ros_deep_learning_nodelets.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: