ros2_tao_pointpillars icon indicating copy to clipboard operation
ros2_tao_pointpillars copied to clipboard

Compilation error: pp_infer: Cannot locate rosdep definition for [pcl]

Open franciscoascruz opened this issue 1 year ago • 3 comments

Hi!

I'm trying to use this package, but when I try to resolve the missing dependencies with rosdep using:

rosdep install -i --from-path src --rosdistro humble -y

I get the following error:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
pp_infer: Cannot locate rosdep definition for [pcl]

Does someone have a suggestion of what the problem could be?

I'm using:

  • Ubuntu 22.04
  • Ros Humble
  • Cuda 12.0.1
  • CudNN 8.8.0
  • TensorRT 8.6.0.12
  • and I have successfully installed TensorRT OSS

franciscoascruz avatar May 02 '23 14:05 franciscoascruz

[UPDATE]

I edited the package.xml file and instead of using pcl I used pcl_ros which seems to work. However I still can't build the package successfully. Now I've got the following error. Any help, please?

`corluc@corluc:~/pointpillars_ws$ colcon build --packages-select pp_infer
. install/setup.bash
Starting >>> pp_infer
--- stderr: pp_infer                             
** WARNING ** io features related to pcap will be disabled
In file included from /home/corluc/pointpillars_ws/src/src/pointpillar.cpp:30:
/home/corluc/pointpillars_ws/src/src/../include/pp_infer/pointpillar.h:31:10: fatal error: message_filters/subscriber.h: No such file or directory
   31 | #include "message_filters/subscriber.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/pp_infer.dir/build.make:90: CMakeFiles/pp_infer.dir/src/pointpillar.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /home/corluc/pointpillars_ws/src/src/pp_inference_node.cpp:39:
/home/corluc/pointpillars_ws/src/src/../include/pp_infer/pointpillar.h:31:10: fatal error: message_filters/subscriber.h: No such file or directory
   31 | #include "message_filters/subscriber.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/pp_infer.dir/build.make:76: CMakeFiles/pp_infer.dir/src/pp_inference_node.cpp.o] Error 1
/home/corluc/pointpillars_ws/src/src/postprocess.cpp: In function ‘int nms_cpu(std::vector<Bndbox>, float, std::vector<Bndbox>&, int)’:
/home/corluc/pointpillars_ws/src/src/postprocess.cpp:196:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
  196 |     for (size_t i = 0; i < std::min(int(bndboxes.size()), pre_nms_top_n); i++) {
      |                        ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/corluc/pointpillars_ws/src/src/postprocess.cpp:201:34: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
  201 |         for (size_t j = i + 1; j < std::min(int(bndboxes.size()), pre_nms_top_n); j++) {
      |                                ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/pp_infer.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< pp_infer [2.02s, exited with code 2]

Summary: 0 packages finished [2.10s]
  1 package failed: pp_infer
  1 package had stderr output: pp_infer
not found: "/home/corluc/pointpillars_ws/install/pp_infer/share/pp_infer/local_setup.bash"
`

franciscoascruz avatar May 02 '23 14:05 franciscoascruz

Have you solved to build the package?

tiesus avatar Nov 28 '23 17:11 tiesus

Can I know whether this package is compatible with ROS2 Humble on Ubuntu 22.04? If so, what is the TensorRT version that we have to install?

Prabuddhi-05 avatar Dec 07 '23 20:12 Prabuddhi-05