jetbot ros catkin_make errors, please help.

i was completely stuck at the final step while building jetbot ros. i googled everything, hardly find the right solution to overcome the issue…Gosh so close, but so far away… Please, anyone can give me a headsup? much appreciated.

status:

  1. jetbot hardware & software installation. --OK.
  2. Install ROS melodic. --OK
  3. Build jetson inference. --OK
  4. Build ros deep learning. --OK
    until…
  5. the command that i entered while building jetbot ros
    catkin_make

    [ 73%] Building CXX object jetbot_ros/CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o
    /home/jetbot/workstation/catkin_ws/src/jetbot_ros/src/jetbot_camera.cpp: In function ‘bool aquireFrame()’:
    /home/jetbot/workstation/catkin_ws/src/jetbot_ros/src/jetbot_camera.cpp:58:36: error: invalid conversion from ‘void**’ to ‘float**’ [-fpermissive]
    if( !camera->ConvertRGBA(imgCUDA, &imgRGBA) )
    ^~~~~~~~
    In file included from /home/jetbot/workstation/catkin_ws/src/jetbot_ros/src/jetbot_camera.cpp:28:0:
    /usr/local/include/jetson-utils/gstCamera.h:229:7: note: initializing argument 2 of ‘bool gstCamera::ConvertRGBA(void*, float**, bool)’
    bool ConvertRGBA( void* input, float** output, bool zeroCopy=false );
    ^~~~~~~~~~~
    /home/jetbot/workstation/catkin_ws/src/jetbot_ros/src/jetbot_camera.cpp: In function ‘int main(int, char**)’:
    /home/jetbot/workstation/catkin_ws/src/jetbot_ros/src/jetbot_camera.cpp:108:41: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
    camera = gstCamera::Create(camera_index);
    ^
    In file included from /home/jetbot/workstation/catkin_ws/src/jetbot_ros/src/jetbot_camera.cpp:28:0:
    /usr/local/include/jetson-utils/gstCamera.h:91:20: note: initializing argument 1 of ‘static gstCamera* gstCamera::Create(const char*)’
    static gstCamera* Create( const char* camera=NULL ); // use MIPI CSI camera by default
    ^~~~~~
    [ 93%] Built target segnet
    jetbot_ros/CMakeFiles/jetbot_camera.dir/build.make:62: recipe for target ‘jetbot_ros/CMakeFiles/jetbot_camera.dir/src/jetbot_camera.cpp.o’ failed
    make[2]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/src/jetbot_camera.cpp.o] Error 1
    CMakeFiles/Makefile2:455: recipe for target ‘jetbot_ros/CMakeFiles/jetbot_camera.dir/all’ failed
    make[1]: *** [jetbot_ros/CMakeFiles/jetbot_camera.dir/all] Error 2
    Makefile:140: recipe for target ‘all’ failed
    make: *** [all] Error 2
    Invoking “make -j2 -l2” failed

Hi tsuixc, sorry about that - I just pushed some fixes and updates to the jetbot_ros repo. Please remove it from your catkin workspace and re-clone.

Also, I added some instructions for viewing the video feed here: [url]https://github.com/dusty-nv/jetbot_ros#using-the-camera[/url]

Hi, dusty_nv:
I should have asked your help earlier…After tons of SD cards images flashed, finally, i got the most shining-eyes terminal page ever happened to me in my life :) thank you very much…carry on the adventure of my first jetbot ros…

(solved!)
– +++ processing catkin package: ‘jetbot_ros’
– ==> add_subdirectory(jetbot_ros)
– +++ processing catkin package: ‘ros_deep_learning’
– ==> add_subdirectory(ros_deep_learning)
– Configuring done
– Generating done
– Build files have been written to: /home/jetbot/workspace/catkin_ws/build

Running command: “make -j2 -l2” in “/home/jetbot/workspace/catkin_ws/build”

Scanning dependencies of target jetbot_camera
[ 6%] Building CXX object jetbot_ros/CMakeFiles/jetbot_camera.dir/src/jetbot_camera.cpp.o
[ 26%] Built target ros_deep_learning_nodelets
[ 46%] Built target detectnet
[ 66%] Built target segnet
[ 86%] Built target imagenet
[ 93%] Building CXX object jetbot_ros/CMakeFiles/jetbot_camera.dir/src/image_converter.cpp.o
[100%] Linking CXX executable /home/jetbot/workspace/catkin_ws/devel/lib/jetbot_ros/jetbot_camera
[100%] Built target jetbot_camera
jetbot@jetbot:~/workspace/catkin_ws$ rospack find jetbot_ros
/home/jetbot/workspace/catkin_ws/src/jetbot_ros