suggestion for additional note on iKinCartesianSolver wiki entry #149
-
Hi, This is a suggestion rather than an issue. I just spent a few hours trying to get the iKinCartesianSolver to work with the simulator using the iCub_Simulator_Startup script. Changing $YARP_ROBOT_NAME to iCubSIM did the trick for me as there's no such robot directory. So in order to potentially save someone else a few hours of debugging I suggest to add a sentence recommending a change of the robot name when trying to use the solvers with the simulator to the wiki page. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Hi @frank-foerster
I'm sorry you wasted a few hours, but this "undesired" event could have happened also with e.g. |
Beta Was this translation helpful? Give feedback.
-
Hi @pattacini , thanks for the explanations regarding the design. I was not suggesting to hardcode or state the location of "allow specifying a different path where to search the configuration file", one could simply add something like "(this option may be inefficacious if the robot name stored within As said this is just a suggestion, that would have saved me and potentially others some headaches. If you prefer it spartanic and minimalistic this is obviously up to you as the module developer. So just to clarify: the Also, thanks for linking issue/discussion #42. |
Beta Was this translation helpful? Give feedback.
-
The thing is that Further, the warning should have been more something like "Beware of the context search policy" 😄 with an appropriate link to e.g. http://wiki.icub.org/yarpdoc/yarp_data_dirs.html, because the role of Coming to your questionsThere is a specific hierarchy established among robot and module contexts, which also considers the case of files located either in local or installed directories. The whole story is detailed in the documentation linked above and in other resources you can find in our wiki as well as in #42. The (quick) take home message is that robot contexts gain priority over modules own contexts (even if user specifies explicitly the Therefore:
Hope this better clarifies how to deal with contexts. |
Beta Was this translation helpful? Give feedback.
-
A further quick note. I definitely suggest to use frequently in debugging this command:
to inspect which file will be loaded from which context. The tools |
Beta Was this translation helpful? Give feedback.
-
Hi, Thankfully, modules (or the Thanks for the link to #146. Does that mean that simCartesianControl will be phased out? |
Beta Was this translation helpful? Give feedback.
-
@frank-foerster, just added the warning to a couple of modules, i.e.
|
Beta Was this translation helpful? Give feedback.
-
Ok, thanks a lot. Let's hope the warning will help someone or save them time. |
Beta Was this translation helpful? Give feedback.
The thing is that
iKinCartesianSolver
does not represent a special case, hence there's really no need to highlight more clearly the warning in the documentation, otherwise we should replicate it within the documentation of each single module.Further, the warning should have been more something like "Beware of the context search policy" 😄 with an appropriate link to e.g. http://wiki.icub.org/yarpdoc/yarp_data_dirs.html, because the role of
YARP_ROBOT_NAME
is only one of the many aspects the user needs to account for.Coming to your questions
There is a specific hierarchy established among robot and module contexts, which also considers the case of files located either in local or installed …