This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SDK 10: ROS Instructions Do Not Work

Part Number: AM62A7

Tool/software:

Hello,

We are currently attempting to follow the ROS setup instructions for the AM62a on the 10 sdk.

We are following these instructions:

https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM62AX/10_00_00/exports/robotics-docs/source/docker/README.html

and

https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM62AX/10_00_00/exports/robotics-docs/source/docker/setting_docker_ros2.html

However, when attempting to do step "3.2. Set Up Docker Environment on the Remote PC for Visualization" (from the second link) we are running into an error:

jbourgeot@laptop-183:~/j7ros_home$ make scripts ROS_VER=2
docker_build.sh is generated
docker_run.sh is generated
jbourgeot@laptop-183:~/j7ros_home$ ./docker_build.sh 
USE_PROXY = 0
REPO_LOCATION = 
SOC is not defined. Sourcing detect_soc.sh.
grep: /proc/device-tree/compatible: No such file or directory
grep: /proc/device-tree/compatible: No such file or directory
grep: /proc/device-tree/compatible: No such file or directory
grep: /proc/device-tree/compatible: No such file or directory
grep: /proc/device-tree/compatible: No such file or directory
grep: /proc/device-tree/compatible: No such file or directory
grep: /proc/device-tree/compatible: No such file or directory
WARNING: EdgeAI Apps is not supported in this Target
[+] Building 0.8s (8/21)                                                                                                                                                       docker:default
 => [internal] load build definition from Dockerfile.arm64.humble                                                                                                                        0.0s
 => => transferring dockerfile: 5.64kB                                                                                                                                                   0.0s
 => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 114)                                                                                                         0.0s
 => WARN: InvalidDefaultArgInFrom: Default value for ARG base-${USE_PROXY} results in empty or invalid base image name (line 51)                                                         0.0s
 => WARN: FromPlatformFlagConstDisallowed: FROM --platform flag should not use constant value "linux/arm64" (line 40)                                                                    0.0s
 => [internal] load metadata for docker.io/arm64v8/ros:humble-perception-jammy                                                                                                           0.3s
 => [internal] load .dockerignore                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                          0.0s
 => [internal] load build context                                                                                                                                                        0.0s
 => => transferring context: 5.49kB                                                                                                                                                      0.0s
 => [base-0 1/1] FROM docker.io/arm64v8/ros:humble-perception-jammy@sha256:654f2f6b0183470881db1b940f8c4b744d714314999e3d77071b5b4b43c66034                                              0.0s
 => CACHED [ros-gst 1/9] ADD setup_proxy.sh /root/                                                                                                                                       0.0s
 => CACHED [ros-gst 2/9] ADD proxy /root/proxy                                                                                                                                           0.0s
 => ERROR [ros-gst 3/9] RUN /root/setup_proxy.sh                                                                                                                                         0.3s
------                                                                                                                                                                                        
 > [ros-gst 3/9] RUN /root/setup_proxy.sh:
0.228 exec /bin/sh: exec format error
------
Dockerfile.arm64.humble:58
--------------------
  56 |     ADD setup_proxy.sh /root/
  57 |     ADD proxy /root/proxy
  58 | >>> RUN /root/setup_proxy.sh
  59 |     
  60 |     # intsall utils and miscellaneous packages
--------------------
ERROR: failed to solve: process "/bin/sh -c /root/setup_proxy.sh" did not complete successfully: exit code: 1

Note there seems to be another problem as the make command creates a "docker_build.sh" instead of a "docker_build_ros2.sh" as listed in the instructions.

Is there a step I am missing?

Thank you,

    Joshua Bourgeot