Fail to [deploy to Hardware] and build ros package using simulink coder

1 visualización (últimos 30 días)
I try to make ROS node using simulink and simulink coder.
Target device is RaspberryPi 3B (OS is Ubuntu mate 16.04).
In configuration parametor ,
hardware board : Robot Operating System (ROS)
device bender : ARM Compatible
device type : ARM Cortex
But exchanging target device to Intel CPU core PC,  click [Deploy to hardware] is success.
What is solution and case ?
build log is
Catkin project directory: /home/shundai/catkin_ws/src/tourobo2019_auto2
tar: ert_main.cpp: time stamp 2019-08-11 14:27:34 is 3254.654230558 s in the future
tar: rtGetInf.cpp: time stamp 2019-08-11 14:27:34 is 3254.653889725 s in the future
tar: rtGetNaN.cpp: time stamp 2019-08-11 14:27:34 is 3254.653741652 s in the future
tar: rt_nonfinite.cpp: time stamp 2019-08-11 14:27:34 is 3254.6536216 s in the future
tar: tourobo2019_auto2.cpp: time stamp 2019-08-11 14:27:34 is 3254.653320871 s in the future
tar: tourobo2019_auto2_data.cpp: time stamp 2019-08-11 14:27:34 is 3254.653112225 s in the future
tar: slros_busmsg_conversion.cpp: time stamp 2019-08-11 14:27:36 is 3256.652437381 s in the future
tar: slros_initialize.cpp: time stamp 2019-08-11 14:27:36 is 3256.652311496 s in the future
tar: slros_initialize.h: time stamp 2019-08-11 14:27:36 is 3256.65211436 s in the future
tar: rtGetInf.h: time stamp 2019-08-11 14:27:33 is 3253.65199035 s in the future
tar: rtGetNaN.h: time stamp 2019-08-11 14:27:33 is 3253.651873058 s in the future
tar: rt_defines.h: time stamp 2019-08-11 14:27:33 is 3253.651741548 s in the future
tar: rt_nonfinite.h: time stamp 2019-08-11 14:27:33 is 3253.651617329 s in the future
tar: MW_custom_RTOS_header.h: time stamp 2019-08-11 14:27:34 is 3254.651494829 s in the future
tar: multiword_types.h: time stamp 2019-08-11 14:27:34 is 3254.651377642 s in the future
tar: rtmodel.h: time stamp 2019-08-11 14:27:34 is 3254.651247433 s in the future
tar: rtwtypes.h: time stamp 2019-08-11 14:27:34 is 3254.651120975 s in the future
tar: tourobo2019_auto2.h: time stamp 2019-08-11 14:27:34 is 3254.650903683 s in the future
tar: tourobo2019_auto2_private.h: time stamp 2019-08-11 14:27:34 is 3254.650753735 s in the future
tar: tourobo2019_auto2_types.h: time stamp 2019-08-11 14:27:34 is 3254.6505966 s in the future
tar: slros_busmsg_conversion.h: time stamp 2019-08-11 14:27:36 is 3256.650455871 s in the future
tar: defines.txt: time stamp 2019-08-11 14:27:35 is 3255.647970454 s in the future
tar: CMakeLists.txt: time stamp 2019-08-11 14:27:38 is 3258.647786704 s in the future
tar: package.xml: time stamp 2019-08-11 14:27:38 is 3258.64766436 s in the future
-- Using CATKIN_DEVEL_PREFIX: /home/shundai/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/shundai/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/shundai/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/shundai/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 4 packages in topological order:
-- ~~ - canusb
-- ~~ - nhk2020
-- ~~ - rplidar_ros
-- ~~ - tourobo2019_auto2
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'canusb'
-- ==> add_subdirectory(canusb)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- canusb: 1 messages, 0 services
-- +++ processing catkin package: 'nhk2020'
-- ==> add_subdirectory(NHK2020)
-- +++ processing catkin package: 'rplidar_ros'
-- ==> add_subdirectory(rplidar_ros)
-- +++ processing catkin package: 'tourobo2019_auto2'
-- ==> add_subdirectory(tourobo2019_auto2)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shundai/catkin_ws/build
-- Using CATKIN_DEVEL_PREFIX: /home/shundai/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/shundai/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/shundai/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/shundai/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 4 packages in topological order:
-- ~~ - canusb
-- ~~ - nhk2020
-- ~~ - rplidar_ros
-- ~~ - tourobo2019_auto2
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'canusb'
-- ==> add_subdirectory(canusb)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- canusb: 1 messages, 0 services
-- +++ processing catkin package: 'nhk2020'
-- ==> add_subdirectory(NHK2020)
-- +++ processing catkin package: 'rplidar_ros'
-- ==> add_subdirectory(rplidar_ros)
-- +++ processing catkin package: 'tourobo2019_auto2'
-- ==> add_subdirectory(tourobo2019_auto2)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shundai/catkin_ws/build
-- Using CATKIN_DEVEL_PREFIX: /home/shundai/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/shundai/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/shundai/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/shundai/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.18
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 4 packages in topological order:
-- ~~ - canusb
-- ~~ - nhk2020
-- ~~ - rplidar_ros
-- ~~ - tourobo2019_auto2
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'canusb'
-- ==> add_subdirectory(canusb)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- canusb: 1 messages, 0 services
-- +++ processing catkin package: 'nhk2020'
-- ==> add_subdirectory(NHK2020)
-- +++ processing catkin package: 'rplidar_ros'
-- ==> add_subdirectory(rplidar_ros)
-- +++ processing catkin package: 'tourobo2019_auto2'
-- ==> add_subdirectory(tourobo2019_auto2)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shundai/catkin_ws/build
[ 0%] Built target std_msgs_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target sensor_msgs_generate_messages_py
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target rosgraph_msgs_generate_messages_lisp
[ 0%] Built target rosgraph_msgs_generate_messages_cpp
[ 0%] Built target _canusb_generate_messages_check_deps_CAN
[ 0%] Built target roscpp_generate_messages_py
[ 0%] Built target rosgraph_msgs_generate_messages_nodejs
[ 0%] Built target roscpp_generate_messages_cpp
[ 0%] Built target roscpp_generate_messages_eus
[ 0%] Built target rosgraph_msgs_generate_messages_eus
[ 0%] Built target roscpp_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target roscpp_generate_messages_nodejs
[ 0%] Built target std_msgs_generate_messages_eus
[ 0%] Built target rosgraph_msgs_generate_messages_py
[ 0%] Built target geometry_msgs_generate_messages_nodejs
[ 0%] Built target geometry_msgs_generate_messages_lisp
[ 0%] Built target sensor_msgs_generate_messages_lisp
[ 0%] Built target geometry_msgs_generate_messages_eus
[ 0%] Built target sensor_msgs_generate_messages_eus
[ 0%] Built target geometry_msgs_generate_messages_cpp
[ 0%] Built target geometry_msgs_generate_messages_py
[ 0%] Built target sensor_msgs_generate_messages_nodejs
[ 0%] Built target sensor_msgs_generate_messages_cpp
[ 11%] Built target canusb_generate_messages_py
[ 16%] Built target canusb_generate_messages_cpp
[ 22%] Built target canusb_generate_messages_nodejs
[ 33%] Built target canusb_generate_messages_eus
[ 38%] Built target canusb_generate_messages_lisp
Scanning dependencies of target tourobo2019_auto2_node
make[3]: Warning: File '/home/shundai/catkin_ws/src/tourobo2019_auto2/multiword_types.h' has modification time 3190 s in the future
[ 50%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/rtGetInf.cpp.o
[ 50%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/rtGetNaN.cpp.o
[ 55%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/ert_main.cpp.o
[ 61%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/rt_nonfinite.cpp.o
[ 66%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/tourobo2019_auto2.cpp.o
[ 77%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/linuxinitialize.cpp.o
[ 77%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/tourobo2019_auto2_data.cpp.o
In file included from /home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.cpp:8:0:
/home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.h:4:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
^
<command-line>:0:0: note: this is the location of the previous definition
/home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.cpp: In function 'void mw_CreateTask(void (*)(), const char*, int, int, int, int)':
/home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.cpp:396:71: warning: invalid conversion from 'void*' to 'void* (*)(void*)' [-fpermissive]
status = pthread_create(&thread, &attr, (void *) taskHandler, NULL);
^
In file included from /home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.h:11:0,
from /home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.cpp:8:
/usr/include/pthread.h:233:12: note: initializing argument 3 of 'int pthread_create(pthread_t*, const pthread_attr_t*, void* (*)(void*), void*)'
extern int pthread_create (pthread_t *__restrict __newthread,
^
[ 83%] Building CXX object tourobo2019_auto2/CMakeFiles/tourobo2019_auto2_node.dir/slros_busmsg_conversion.cpp.o
In file included from /home/shundai/catkin_ws/src/tourobo2019_auto2/ert_main.cpp:8:0:
/home/shundai/catkin_ws/src/tourobo2019_auto2/linuxinitialize.h:4:0: warning: "_GNU_SOURCE" redefined
#define _GNU_SOURCE
^
<command-line>:0:0: note: this is the location of the previous definition

Respuestas (0)

Categorías

Más información sobre Publishers and Subscribers en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by