ros / meta-ros

OpenEmbedded Layers for ROS 1 and ROS 2
MIT License
387 stars 253 forks source link

Catkin build enviroment not available after building meta-ros from legacy branch #681

Closed herr-kumar closed 4 years ago

herr-kumar commented 4 years ago

I am trying to use legacy version of meta-ros (gives out indigo package). I do not automatically get the catkin build enviroment (setup.sh, setup.bash, etc.) inside the SDK or the image.

Should I add something in the build/conf/local.conf file (I tried defining EXTRA_IMAGE_FEATURES += "ros-implicit-workspace") or should I use some patch to get this done. Any help would be really appreciated.

Thanks in advance, Naveen

herb-kuta-lge commented 4 years ago

@herr-kumar < Is there any chance you could migrate to melodic?

herr-kumar commented 4 years ago

@herb-kuta-lge Thank you for the message. I am using the Indigo version (legacy branch) because the board I am using uses Yocto-Rocko. Is it not possible to use Indigo and have the environment setup.

Can you let me know if these below settings are enough for set-up: export ROS_ROOT=/opt/ros export ROS_DISTRO=indigo export ROS_PACKAGE_PATH=/opt/ros/indigo/share export PATH=$PATH:/opt/ros/indigo/bin export LD_LIBRARY_PATH=/opt/ros/indigo/lib export PYTHONPATH=/opt/ros/indigo/lib/python2.7/site-packages export ROS_MASTER_URI=http://localhost:11311 export CMAKE_PREFIX_PATH=/opt/ros/indigo touch /opt/ros/indigo/.catkin

Also, regarding SDK cross-compiling to my target board, can you tell me how to do it?

herb-kuta-lge commented 4 years ago

@herr-kumar < Sorry, but I have no knowledge of how to use what's on the [legacy] branch. Perhaps there's someone else in the community that can help.

herr-kumar commented 4 years ago

@herb-kuta-lge May I know which branch of meta-ros should I checkout for melodic version of ROS?

shr-project commented 4 years ago

@herr-kumar thud-draft, warrior-draft, zeus-draft or master-draft depending on which Yocto release you're using.

shr-project commented 4 years ago

I'm going to assume that it works OK for you, please create new issue ticket if you find some issues later.

"Silence implies consent" (see http://wiki.c2.com/?SilenceImpliesConsent).