Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
doc:beginner:package_for_turtlesim [2014/03/12 14:23] – created hmess | doc:beginner:package_for_turtlesim [2014/10/20 11:53] – Added the "Next" title for the last section of the tutorial. mpomarlan | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating a CRAM package ====== | ====== Creating a CRAM package ====== | ||
- | **Description: | + | **Description: |
- | **Next Tutorial:** [[doc: | + | **Next Tutorial:** [[doc: |
===== Creating a ROS package ===== | ===== Creating a ROS package ===== | ||
Line 53: | Line 53: | ||
</ | </ | ||
| | ||
- | We define a package with the name '' | + | We define a package with the name '' |
- | <!--Please note that most Common Lisp packages actually use the package | + | |
- | |||
- | We have to deside how much lisp content we want to have in here. | ||
- | --> | ||
==== Exporting the ASDF system to ROS ==== | ==== Exporting the ASDF system to ROS ==== | ||
Line 69: | Line 65: | ||
This just selects the namespace of the file by the nickname '': | This just selects the namespace of the file by the nickname '': | ||
- | Now we are ready to compile and load our new system. Launch the Lisp REPL. If it is already running, reload it by executing: | + | Now we are ready to compile and load our new system. Launch the Lisp REPL. |
- | + | Then load your newly created system by typing: | |
- | <code lisp> | + | |
- | , | + | |
- | restart-inferior-lisp | + | |
- | </ | + | |
- | + | ||
- | in the REPL. Then load your newly created system by typing: | + | |
<code lisp> | <code lisp> | ||
Line 82: | Line 72: | ||
</ | </ | ||
- | <!--You need to load the system every time before you use it, so experts would build their own shortcuts to this command or use the rosemacs function unstead: | + | This loads the '' |
+ | Test it by evaluating | ||
<code lisp> | <code lisp> | ||
- | , | + | (in-package :tut) |
- | ros-load-system | + | |
- | cram_beginner_tutorial | + | |
- | cram-beginner-tutorial | + | |
</ | </ | ||
- | The first parameter to '' | + | == Next == |
- | Now the package '' | + | |
- | <code lisp> | ||
- | (in-package :tut) | ||
- | </ | ||
Now that we have created our first CRAM package, let's try controlling the ROS turtlesim from it... | Now that we have created our first CRAM package, let's try controlling the ROS turtlesim from it... | ||
- | [[doc: | + | [[doc: |