I.MX8M plus AI Robot platform

cancel
Showing results for 
Search instead for 
Did you mean: 

I.MX8M plus AI Robot platform

Jump to solution
394 Views
刘国华
Contributor III

@xiaodong_zhang 

Hi Xiaodong 

This is KingLiu , we have already got one AI Robot EVK ,and compiled the Yocto BSP 5.4.70.2.30 source code successully . Right now I decide to use the command "bitbake imx-robot-sdk -c populate_sdk "  to generate the development SDK to our customer , but I encounter some issue . Please chech the attachment for the detail information about the log file . Please help to give some suggestion. Many thanks  

Labels (2)
Tags (1)
0 Kudos
1 Solution
371 Views
xiaodong_zhang
NXP Employee
NXP Employee

Hi @刘国华 

    Which ROS version, kinetic or melodic, you choose? I think it's known issue which python2 conflict with python3. Please add python3-nose%.bbappend in sources/meta-robot-platform/imx/meta-robot/recipes-devtools/python, it's context as the following:

do_install_append () {
rm -f ${D}${bindir}/nosetests
}

BTW, imx-robot-sdk image is not created for cross-compile in x86 server, but for building ROS component on i.MX8M board. You can try "bitbake imx-robot-system -c populate_sdk" without gmssl-bin to create sdk used in x86 server.

diff --git a/imx/meta-robot/recipes-core/images/imx-robot-system.bb b/imx/meta-robot/recipes-core/images/imx-robot-system.bb
index 1991ab10..68f9ad31
--- a/imx/meta-robot/recipes-core/images/imx-robot-system.bb
+++ b/imx/meta-robot/recipes-core/images/imx-robot-system.bb
@@ -35,7 +35,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'weston-xwayland xterm', '', d)} \
${ISP_PKGS} \
"
-IMAGE_INSTALL += " clblast openblas libeigen opencv gmssl-bin"
+IMAGE_INSTALL += " clblast openblas libeigen opencv"

IMAGE_INSTALL += " \
${ML_PKGS} \

View solution in original post

0 Kudos
8 Replies
209 Views
15962561745
Contributor II

@xiaodong_zhang 

Hi Xiaodong,

How can I use ROS version foxy in this package?

 

 

0 Kudos
180 Views
xiaodong_zhang
NXP Employee
NXP Employee

@15962561745 

Sure, and please use the below setup command:

DISTRO=imx-robot-xwayland MACHINE=imx8mp-ddr4-ipc source setup-imx-robot.sh -r foxy -b imx8mp-ddr4-ipc-robot-foxy

0 Kudos
150 Views
15962561745
Contributor II

Sure,it work and  compile sdk too.

but use sdk compile ros app ,there are other problems.log like this:

By not providing "Findament_cmake_libraries.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file provided
by "ament_cmake_libraries", but CMake did not find one.

Could not find a package configuration file provided by
"ament_cmake_libraries" with any of the following names:

ament_cmake_librariesConfig.cmake
ament_cmake_libraries-config.cmake

Add the installation prefix of "ament_cmake_libraries" to CMAKE_PREFIX_PATH
or set "ament_cmake_libraries_DIR" to a directory containing one of the
above files. If "ament_cmake_libraries" provides a separate development
package or SDK, be sure it has been installed.

can you give me some hint? thank you.

 

0 Kudos
136 Views
xiaodong_zhang
NXP Employee
NXP Employee

@15962561745 

   Can you tell me your company name?

0 Kudos
130 Views
15962561745
Contributor II

上海寰果信息科技有限公司

0 Kudos
116 Views
xiaodong_zhang
NXP Employee
NXP Employee

@15962561745 

I mentioned in https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%B9%B...

imx-robot-sdk image is just for building ROS package on i.MX board, not  for cross-compile. You can try "bitbake imx-robot-system -c populate_sdk" to create cross-compile sdk without gmssl-bin.

If you want to build new ROS2 application, you need refer to recipe file in Yocto, for example laser-geometry_2.2.0-3.bb.Or burn imx-robot-sdk image into i.MX board and install colcon relative packages. And follow the below guide to build ROS2 package.

https://docs.ros.org/en/foxy/Tutorials/Creating-Your-First-ROS2-Package.html

0 Kudos
372 Views
xiaodong_zhang
NXP Employee
NXP Employee

Hi @刘国华 

    Which ROS version, kinetic or melodic, you choose? I think it's known issue which python2 conflict with python3. Please add python3-nose%.bbappend in sources/meta-robot-platform/imx/meta-robot/recipes-devtools/python, it's context as the following:

do_install_append () {
rm -f ${D}${bindir}/nosetests
}

BTW, imx-robot-sdk image is not created for cross-compile in x86 server, but for building ROS component on i.MX8M board. You can try "bitbake imx-robot-system -c populate_sdk" without gmssl-bin to create sdk used in x86 server.

diff --git a/imx/meta-robot/recipes-core/images/imx-robot-system.bb b/imx/meta-robot/recipes-core/images/imx-robot-system.bb
index 1991ab10..68f9ad31
--- a/imx/meta-robot/recipes-core/images/imx-robot-system.bb
+++ b/imx/meta-robot/recipes-core/images/imx-robot-system.bb
@@ -35,7 +35,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'weston-xwayland xterm', '', d)} \
${ISP_PKGS} \
"
-IMAGE_INSTALL += " clblast openblas libeigen opencv gmssl-bin"
+IMAGE_INSTALL += " clblast openblas libeigen opencv"

IMAGE_INSTALL += " \
${ML_PKGS} \

View solution in original post

0 Kudos
353 Views
刘国华
Contributor III

@xiaodong_zhang 

Hi Xiaodong

Thanks for your suggestion, following your comment , I have fixed the issue .  I choice the ROS melodic verison with this command  

DISTRO=imx-robot-wayland MACHINE=imx8mp-ddr4-ipc source setup-imx-robot.sh -r melodic -b imx8mp-ddr4-ipc-robot-melodic

0 Kudos