[ros-users] [Discourse.ros.org] [general] Applying best prac…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: suforeman via ros-users
Dato:  
Til: ros-users
Emne: [ros-users] [Discourse.ros.org] [general] Applying best practices to tutorials (or having a best practices example)?



I finally read through all of the links from the github wiki page. Good information. That said, it did not answer the particular question of "structuring python code".

>From ros.org, there is the suggestion of the following directory structure:


    packagename
     |- src/
        |- packagename/
          |- __init__.py
          |- yourfiles.py


Thus, you end up with something like this:

`~/catkin_ws/src/package/src/package/file.py`

The extra `package/` folder seems overly redundant. This extra level does not exist in the C++ guide. I could not find an explanation as to why it is recommended for python.






---
[Visit Topic](https://discourse.ros.org/t/applying-best-practices-to-tutorials-or-having-a-best-practices-example/1108/3) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>