Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:beginner:package_for_turtlesim [2015/04/28 15:34] – [Creating the Lisp Package] gkazhoyadoc:beginner:package_for_turtlesim [2015/04/28 15:35] – [Creating the Lisp Package] gkazhoya
Line 43: Line 43:
 ==== Creating the Lisp Package ==== ==== Creating the Lisp Package ====
  
-Lisp packages are the equivalent to C++ namespaces or Python modules. Lisp packages cannot be hierarchicWe can define which other packages should be used, i.e. which symbols should be accessible without a package prefix. Further, we can define which symbols should be exported from the package.+Lisp packages are the equivalent to C++ namespaces or Python modules. Lisp packages cannot be hierarchicalThrough Lisp packages we can define which other packages should be used, i.e. which symbols should be accessible without a package prefix. Further, we can define which symbols should be exported from the package.
  
 Create a sub-directory ''src'' in your package. Then create the file ''package.lisp'' and put the following code into it: Create a sub-directory ''src'' in your package. Then create the file ''package.lisp'' and put the following code into it:
Line 53: Line 53:
 </code>   </code>  
      
-We define a package with the name ''cram-beginner-tutorial''. Packages in Common Lisp can have an arbitrary number of nicknames. In our case we nickname ''cram-beginner-tutorial'' as ''tut''. Finally, we define that the package uses another package ''cpl'' which is a nickname of the package  ''Cram-language'' in the stack ''cram_core''+We define a package with the name ''cram-beginner-tutorial''. Packages in Common Lisp can have an arbitrary number of nicknames. In our case we nickname ''cram-beginner-tutorial'' as ''tut''. Finally, we define that the package uses another package ''cpl'' which is a nickname of the package  ''cram-language'' from the metapackage ''cram_core''
  
 ==== Exporting the ASDF system to ROS ==== ==== Exporting the ASDF system to ROS ====