-
Notifications
You must be signed in to change notification settings - Fork 13
Migrate codyco-modules/src/modules/torqueBalancing/app/robots/ configuration files to some other repo #273
Comments
cc @S-Dafarra @gabrielenava @diegoferigo @nunoguedelha @fjandrad @prashanthr05 @Yeshasvitvs @lrapetti |
Why not |
At least at the superbuild level, |
Indeed, those configuration files are mainly used for |
I too think |
Of the options proposed above, I like two of them: Long solutionStore these files Fast solutionIf all the users of the |
Mhh, let's discuss about this. I do not think there is a lot of redundancy between the two repos: if icub-models could cover all the missing features w.r.t. to icub-gazebo, I think that icub-gazebo repo should disappear.
I think most of the users of this actually use the robotology-superbuild, so as long as we ensure that the positions are still installed, I do not think there will be a lot of change. |
Is the offer of moving the home position in |
Yes please, that would be really helpful. Unless there is something that is required also for walking, but probably that could be moved in the walking-controllers repo @GiulioRomualdi . |
Hi guys @robotology/iit-dic , any news on this? codyco-modules is ideally going to be removed soon, so it would be great to either port this files, or drop their use. |
Given the lack of replies, I assume that no one is interested/using those configuration files, and proceed to remove them from the files installed in the robotology-superbuild by dropping codyco-modules in the next weeks. |
Note that probably the docs in whole-body-controllers and walking-teleoperation would need to be updated after the removal of these files, as they still references them in their docs:
|
@traversaro which part of the documentation in walking-teleoperation needs updates? |
The linked walking-teleoperation wiki page refers to the |
When you apply the intended changes, please ping us, so I will update the documentation. |
Due to the lack of feedback, the currently planned change is to remove those files, as mentioned in #273 (comment) . For this reason, if you are not using those files I suggest to change the documentation now, without to wait for the actual removal of the files. |
Just to understand, where is the file |
As mentioned in #273 (comment), given the lack of replies I assumed that no one is currently using the |
I probably overlooked this because of the similarity with #290. Sorry about that. |
Ok, then I updated again the title of the issue.
As of #273 (comment), I think the agreement to put the models in |
I still agree.
If necessary I can do it on Wednesday (even if it should be a simple task). |
Great, thanks @gabrielenava ! Wednesday is ok, but there is nothing urgent. |
Done with this commit: robotology/whole-body-controllers@36d9056 Installation tested with the robotology superbuild and seems working fine. It is in NB: to keep the commit history readable, modifications of the |
Related issue in wbc: robotology/whole-body-controllers#80 . |
I tried to updated the name of the folder where the files are installed from
Maybe I cannot use |
If you want to avoid the need of adding the In my opinion though, I don't see the advantage of having an additional dependency against modifying an env variable. In this latter case, it would be enough to modify to the README. |
I just realized that if |
This worked thanks @S-Dafarra! Updated with this commit: robotology/whole-body-controllers@55928fb |
|
This is not strictly related to this repo, but a non-trivial problem is the need to have a env variable for each project, for example in context such as the superbuild. Having a lot of env variables is quite error prone, while having just a few of them is more manageable. |
How does the superbuild handle it? When we tried yesterday it worked out-of-the-box, also with the |
I have no idea how that would be working if you did not modified the YARP_DATA_DIRS env variables. If you want to debug, it would be interesting to run the |
I checked out on robotology/whole-body-controllers@36d9056, installed and uninstalled sdafarra@iiticublap104:~$ yarp resource --find homePoseBalancing.ini --verbose
||| configuring
||| configuring
||| default config file specified as homePoseBalancing.ini
||| checking [/home/sdafarra/homePoseBalancing.ini] (pwd)
||| checking [/home/sdafarra/.config/yarp/robots/icubGazeboSim] (robot YARP_CONFIG_HOME)
||| checking [/home/sdafarra/.local/share/yarp/robots/icubGazeboSim] (robot YARP_DATA_HOME)
||| checking [/etc/xdg/xdg-ubuntu/yarp/robots/icubGazeboSim] (robot YARP_CONFIG_DIRS)
||| checking [/usr/share/upstart/xdg/yarp/robots/icubGazeboSim] (robot YARP_CONFIG_DIRS)
||| checking [/etc/xdg/yarp/robots/icubGazeboSim] (robot YARP_CONFIG_DIRS)
||| checking [robots/icubGazeboSim] (robot YARP_DATA_DIRS)
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/yarp/robots/icubGazeboSim] (robot YARP_DATA_DIRS)
||| found /home/sdafarra/Software/robotology-superbuild/build/install/share/yarp/robots/icubGazeboSim
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/iCub/robots/icubGazeboSim] (robot YARP_DATA_DIRS)
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/ICUBcontrib/robots/icubGazeboSim] (robot YARP_DATA_DIRS)
||| found /home/sdafarra/Software/robotology-superbuild/build/install/share/ICUBcontrib/robots/icubGazeboSim
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/codyco/robots/icubGazeboSim] (robot YARP_DATA_DIRS)
||| found /home/sdafarra/Software/robotology-superbuild/build/install/share/codyco/robots/icubGazeboSim
||| checking [config/path.d] (robot path.d YARP_DATA_DIRS)
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/yarp/config/path.d] (robot path.d YARP_DATA_DIRS)
||| found /home/sdafarra/Software/robotology-superbuild/build/install/share/yarp/config/path.d
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/wbc/robots/icubGazeboSim] (robot yarp.d)
||| found /home/sdafarra/Software/robotology-superbuild/build/install/share/wbc/robots/icubGazeboSim
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/yarp/robots/icubGazeboSim/homePoseBalancing.ini] (robot)
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/ICUBcontrib/robots/icubGazeboSim/homePoseBalancing.ini] (robot)
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/codyco/robots/icubGazeboSim/homePoseBalancing.ini] (robot)
||| checking [/home/sdafarra/Software/robotology-superbuild/build/install/share/wbc/robots/icubGazeboSim/homePoseBalancing.ini] (robot)
||| found /home/sdafarra/Software/robotology-superbuild/build/install/share/wbc/robots/icubGazeboSim/homePoseBalancing.ini
||| finding file [from]
"/home/sdafarra/Software/robotology-superbuild/build/install/share/wbc/robots/icubGazeboSim/homePoseBalancing.ini"
sdafarra@iiticublap104:~$ cat $ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/share/robotology-superbuild/setup.sh
# Automatically generated setup file for robotology-superbuild
export ROBOTOLOGY_SUPERBUILD_SOURCE_DIR=/home/sdafarra/Software/robotology-superbuild
export ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX=/home/sdafarra/Software/robotology-superbuild/build/install
# Extend PATH (see https://en.wikipedia.org/wiki/PATH_(variable) )
export PATH=$PATH:$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/bin
# YARP related env variables (see http://www.yarp.it/yarp_data_dirs.html )
export YARP_DATA_DIRS=$YARP_DATA_DIRS:$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/share/yarp:$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/share/iCub:$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/share/ICUBcontrib
# Extend CMAKE_PREFIX_PATH (see https://cmake.org/cmake/help/v3.8/variable/CMAKE_PREFIX_PATH.html )
export CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}
# Extend path for shared libraries (see http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/lib
# Setup the path of blockfactory plugins
export BLOCKFACTORY_PLUGIN_PATH=$ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX/lib/blockfactory
# ROBOTOLOGY_USES_GAZEBO-specific lines
# Gazebo related env variables (see http://gazebosim.org/tutorials?tut=components#EnvironmentVariables )
[ -f /usr/share/gazebo/setup.sh ] && source /usr/share/gazebo/setup.sh
export GAZEBO_PLUGIN_PATH=${GAZEBO_PLUGIN_PATH}:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/lib
export GAZEBO_MODEL_PATH=${GAZEBO_MODEL_PATH}:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share/gazebo/models:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share/iCub/robots:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share
export GAZEBO_RESOURCE_PATH=${GAZEBO_RESOURCE_PATH}:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share/gazebo/worlds
# ROBOTOLOGY_ENABLE_DYNAMICS-specific lines
export YARP_DATA_DIRS=$YARP_DATA_DIRS:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share/codyco
# Configure the Matlab path
export MATLABPATH=${MATLABPATH}:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/mex:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share/WBToolbox:${ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX}/share/WBToolbox/images My :/home/sdafarra/Software/robotology-superbuild/build/install/share/yarp:/home/sdafarra/Software/robotology-superbuild/build/install/share/iCub:/home/sdafarra/Software/robotology-superbuild/build/install/share/ICUBcontrib:/home/sdafarra/Software/robotology-superbuild/build/install/share/codyco |
I also modified the -- Found YARP: /home/sdafarra/Software/robotology-superbuild/build/install/lib/cmake/YARP (found version "3.3.1+3-20200117.4+git5a112f9")
CMake Deprecation Warning at /home/sdafarra/Software/robotology-superbuild/build/install/lib/cmake/YARP/YARPConfig.cmake:315 (message):
The YARP_MODULE_PATH variable is deprecated. CMake find package modules
are now in YCM.
Call Stack (most recent call first):
CMakeLists.txt:9223372036854775807 (_yarp_module_path_is_deprecated)
CMakeLists.txt:15 (set)
YARP_ROBOTS_INSTALL_DIR = share/yarp/robots
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sdafarra/Software/robotology-superbuild/build/robotology/whole-body-controllers Hence the path is relative I would say.
|
Great!
It that is true, I would agree, but that seems to be different from the search policy described in https://www.yarp.it/yarp_data_dirs.html#datafiles_searchpolicy . What I am afraid is that what we are seeing is due to a bug in a YARP, that if fixed would break our workflow. I tried to check the code in https://github.com/robotology/yarp/blob/v3.3.2/src/libYARP_os/src/yarp/os/ResourceFinder.cpp#L600 , but it would take more time. For me we can also install in
I think it is sufficient to just do |
I got it. I checked into the folder
I guess this is the result of
In fact, look at the first lines Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/sdafarra/Software/robotology-superbuild/build/install/share/yarp/config/path.d/wbc.ini
............ Seems to be too elaborate to be a bug 😅 |
I think I understood what is happening: the Edit: @S-Dafarra you beat me by seconds! |
What would you suggest to do then? |
Do whatever you find more reasonable for you, the regression in robotology/yarp#336 (comment) I think is still there, but getting crazy for a super corner case does not make a lot of sense. We can try to install in |
I agree with this. I reverted the last commit and in the process I fixed the warning discussed here. Here is the final commit: robotology/whole-body-controllers@623ac9d |
@gabrielenava What is the timeline for getting those files in the stable branch of whole-body-controllers? |
@traversaro according to my scheduling the release should be done this Friday, but I may need an extra week. |
Ack. @prashanthr05 @fjandrad given this, we can also just disable the installation of wholebodydynamics from codyco-modules for now, and then completly remove codyco-modules when WBC is released. |
@gabrielenava has this feature been released? |
After the last modifications done in the weekend, the PR is ready to be merged: robotology/whole-body-controllers#70 what is missing: time :-D this morning was my thesis time, but in the afternoon I will proceed with merging. There are some comments/issues to properly document before and after the merging, so I need some time to do it properly :-) |
whole-body-controllers 2.5 released: robotology/whole-body-controllers@f4bfb21 |
So can we close the issue? |
Ok for me |
I prefer to wait for the robotology-superbuild user to actually use these configuration files even if MATLAB is not installed, thanks. |
This could be tested with Gazebo right? |
It has been already tested: robotology/robotology-superbuild#370 (comment) I think we can close (however I do have Matlab, I just did not select the Matlab profile in the superbuild). |
Indeed! |
Besides some estimator-related devices (that will be migrated to the
whole-body-estimators
repository) the only currently used part of this repo is the yarpmotorgui configuration files available incodyco-modules/src/modules/torqueBalancing/app/robots
. We need to migrate them to some other repo. Possible options are:robots-configurations
: I would avoid this asrobots-configuration
is a repo already shared by a lot of people with different interest, so it may be a good idea to not add more complexity to it.dic-robots-configuration
orwhole-body-robots-configurations
, that just contains this kind of robot-specific configuration files, but it is mantained by DIC and only contains configuration files for robots that we mantainicub-gazebo-wholebody
repo to explain that it contains configuration files for a lot of software, not only for Gazebo. Furthermore, we should modify the superbuild to ensure that this repo is installed also whenROBOTOLOGY_USES_GAZEBO
is set to off.The text was updated successfully, but these errors were encountered: