ros / meta-ros

OpenEmbedded Layers for ROS 1 and ROS 2
MIT License
381 stars 251 forks source link

build ros2 sdk #960

Open yiyibst opened 2 years ago

yiyibst commented 2 years ago

When building the sdk and adding the ros1-melodic component bb file, it generates the folder opt/ros/melodic under the sdk, which contains the ros1 environment and ros1 related stuff. But when the same ros2-foxy component bb file is added, why is there no opt/ros/foxy folder generated? If there is no opt/ros/foxy, what if I change the environment if soruce ros2-foxy?

shr-project commented 2 years ago

Because only ROS1 distributions are currently using ros_opt_prefix.bbclass.

yiyibst commented 2 years ago

but how to find the ros2 environment in the sdk, and how to source ros2 environment

SergeyFabric commented 2 years ago

@yiyibst did you find a solution? I managed to build ros2 foxy recipe inside yocto but cannot use the SDK for crosscompile on another machine.