Open KannebTo opened 5 years ago
Hi @KannebTo ,
I have to finish #18 to do another PR with the functionality that you are asking for.
You can build several workspaces separately: ROS base workspace, another specific package in another workspace and your application in another workspace. Each workspace could have a *_ctc.cmake
, startup scripts...
As a guide, you can follow this gist that we are using in RoboCup SSPL@Home as an example to create your build in a separate workspace:
https://gist.github.com/fmrico/f90352bb48856dd78ca0c79ccb810ece
Hope it helps!!
Hi @fmrico, thank you. That's useful!
After successfully compiling and running ROS on Pepper (thanks to this great repository), i like to cross compile my own packages. This seems simple at first. I just need to copy the package folder to
pepper_ros1_ws/src/
and runbuild_ros1.sh
again. But this takes a while, because of scanning for changes in more than 90 packages. I need a fast way to compile and recompile custom packages.So i renamed the
src
directory and created a new one, which contains my packages only. And i created a modified version ofbuild_ros1.sh
, which gets rid of unnecessary commands such as creation of directories, copying files which are already there and thevcs import
. The last step is to fix theICU
linking errors by changing thepepper_ros1_ws/ctc-cmake-toolchain.cmake
. The packages compile if the link flags-licudata
,-licui18n
and-licuuc
are applied.or by adding the project names to the following
if
-statement. Now everything works and i pushed the new files in the installation directory to the robot usingrsync
.Is there a better way? Maybe a new workspace and some scripts? Also it would be nice to separate the base ROS packages for Pepper from the custom ones in the installation directory. So you can simply reset the ROS installation on the Robot by deleting the directory of custom packages.
Thanks