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:
- jetbot hardware & software installation. --OK.
- Install ROS melodic. --OK
- Build jetson inference. --OK
- Build ros deep learning. --OK
until… - 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