documentation:skiros:troubleshooting_skills

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:skiros:troubleshooting_skills [2023/03/23 18:08] pontusrdocumentation:skiros:troubleshooting_skills [2023/06/26 12:42] (current) – [Detect and Fix Import Error] pontusr
Line 26: Line 26:
 </cli> </cli>
  
-Where your skill lies in <skill package 1>, this package should be a ROS package which looks like the package that can be found [[https://git.cs.lth.se/robotlab/rvmi/skiros2_template_lib|here]]. +Where your skill lies in <skill package 1>, this package should be a ROS package which looks like [[https://git.cs.lth.se/robotlab/rvmi/skiros2_template_lib|skiros2_template_lib]]. In the src file of <skill package 1> the following structure is expected
- +
-In the src file of <skill package 1> the following structure is expected+
  
 <cli> <cli>
Line 67: Line 65:
 ==== Detect and Fix Import Error ==== ==== Detect and Fix Import Error ====
  
-An easy way to find import errors is to put a minimal skill in the same directory as the skill that does not get found by SkiROS, a good minimal skill can be found [[https://git.cs.lth.se/robotlab/skill_examples/-/blob/master/src/minimal_skills/minimal_primitive.py|here]]. Then perform the following steps+An easy way to find import errors is to put a minimal skill in the same directory as the skill that does not get found by SkiROS, a good minimal skill can be found in [[https://git.cs.lth.se/robotlab/skill_examples/-/blob/master/src/minimal_skills/minimal_primitive.py|minimal_primitive]]. Then perform the following steps
  
   * Rename the minimal skill.   * Rename the minimal skill.
Line 75: Line 73:
     * If the minimal skill loads there might be a syntax error or import error in the skill you're writing.     * If the minimal skill loads there might be a syntax error or import error in the skill you're writing.
  
-To then determine +To then determine if there is an import error you can paste the imports from your skill into the minimal skill one at a time. If it ever breaks you'll know which import(s) is incorrent. If there are no import errors there might a syntax error. You can paste your skill one block at a time into the same file as the minimal skill. Start with an empty skill with the same name as your skill with no parameters, then add only the parameters to the skill description and so on.
  • documentation/skiros/troubleshooting_skills.1679594909.txt.gz
  • Last modified: 2023/03/23 18:08
  • by pontusr