[Yocto][SC206]How to install ROS2-foxy

I found that the “meta-ros2-foxy” description exists in the bblayers.conf file.
I built linux with following command.

cd qcm2290_r60_r004
source build.sh
build-qti-robotics-med-image

Build was completed successfully.
The image created above was flash to SC206 by QFIL. and it is success.
I boot the SC206 but can’t find “ros2” command.

How to install ROS2-foxy to SC206?
Or where are ros2-related commands installed?

Please try to restore ros2 and compile

Hi, Keven.

Thank you for your reply.
I will try it.

A build error (sophus) has occurred.
error_20240615.zip (13.2 KB)

rebake sros2
rebake ros2run
rebake rosbags2


Then compile build-qti-robotics-med-image as a whole.
Verify:

rebake rosbags2

typo?

Is the following correct?
rebake rosbag2

I think we can use

bitbake -s | grep -i ros

to search that whether the program is included in.

I ran following commands.

rebake sros2
rebake ros2run
rebake rosbags2

Then a following error has occurred in “rebake rosbags2”.

ERROR: Nothing PROVIDES 'rosbags2'. Close matches:
  ros-base
  ros2bag
  rosbag2

So, I ran the following commands.

rebake ros-base
rebake ros2bag
rebake rosbag2

And, I ran the following command again.

rebake rosbags2

However, I got the same error as above.

ERROR: Nothing PROVIDES 'rosbags2'. Close matches:
  ros-base
  ros2bag
  rosbag2

I ran the build-qti-robotics-med-image command and got the following error.

ERROR: Task (/home/nakajima/qcm2290_linux_r60_r004-7/poky/meta-ros/meta-ros-common/recipes-extended/pcl/pcl_1.8.1.bb:do_compile) failed with exit code '1'

build error in pcl

Redoing the build was successful.

I flashing image to SC206E and boot it.
I found this.
/usr/bin/ros2

Thank you for your help.