Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:beginner:location_designators_2 [2019/07/09 18:41] – [Using a location designator] gkazhoya | tutorials:beginner:location_designators_2 [2022/02/25 23:20] (current) – [Using location designators with the TurtleSim] schimpf | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| **Next Tutorial:** [[tutorials: | **Next Tutorial:** [[tutorials: | ||
| + | To run the code in the tutuorial the roscore and the turtlesim need to be started over the terminal. Each in their own tab. | ||
| + | <code bash> | ||
| + | $ roscore | ||
| + | </ | ||
| + | <code bash> | ||
| + | $ rosrun turtlesim turtlesim_node | ||
| + | </ | ||
| + | |||
| + | And in the REPL the following commands should be executed: | ||
| + | <code lisp> | ||
| + | CL-USER> | ||
| + | ... | ||
| + | CL-USER> | ||
| + | </ | ||
| ===== Location designators: | ===== Location designators: | ||
| Line 32: | Line 46: | ||
| ===== Location designator generators ===== | ===== Location designator generators ===== | ||
| - | Let's create | + | Let's create |
| <code lisp> | <code lisp> | ||
| Line 45: | Line 59: | ||
| | | ||
| | | ||
| + | | ||
| | | ||
| " | " | ||
| Line 51: | Line 66: | ||
| | | ||
| " | " | ||
| - | " | + | " |
| - | | + | |
| </ | </ | ||
| Line 63: | Line 77: | ||
| TUT> goal-desig | TUT> goal-desig | ||
| #<A LOCATION | #<A LOCATION | ||
| - | | + | |
| (HORIZONTAL-POSITION LEFT)> | (HORIZONTAL-POSITION LEFT)> | ||
| </ | </ | ||
| Line 195: | Line 209: | ||
| </ | </ | ||
| - | Depending on the random number generator we will get some or none of the solutions rejected and, therefore, ''< | + | Depending on the random number generator we will get some or none of the solutions rejected and, therefore, ''< |
| Line 232: | Line 247: | ||
| (let ((target-point (reference motion))) | (let ((target-point (reference motion))) | ||
| | | ||
| - | " | + | " |
| | | ||
| Line 270: | Line 285: | ||
| | | ||
| | | ||
| - | (goal (desig:a motion (type :going-to) (:goal ?area)))) | + | (goal (desig:a motion (type going-to) (goal ?area)))) |
| (cram-executive: | (cram-executive: | ||
| </ | </ | ||
| - | In '' | + | In '' |
| <code lisp> | <code lisp> | ||
| Line 311: | Line 326: | ||
| [(ROSLISP TOP) INFO] 1501153969.641: | [(ROSLISP TOP) INFO] 1501153969.641: | ||
| [(ROSLISP TOP) INFO] 1501153970.649: | [(ROSLISP TOP) INFO] 1501153970.649: | ||
| - | [(TURTLE-PROCESS-MODULES) INFO] 1501153970.689: TurtleSim navigation invoked with motion designator `#< | + | [(TURTLE-PROCESS-MODULES) INFO] 1562698457.619: TurtleSim navigation invoked with motion designator `#<A MOTION |
| - | GOING-TO) | + | |
| - | (GOAL | + | (GOAL #<A LOCATION |
| - | #< | + | (HORIZONTAL-POSITION RIGHT) |
| - | ((HORIZONTAL-POSITION | + | (VERTICAL-POSITION TOP)> |
| - | RIGHT) | + | [(TURTLE-PROCESS-MODULES) INFO] 1501153970.691: |
| - | (VERTICAL-POSITION | + | |
| - | TOP)) | + | |
| - | | + | |
| - | [(TURTLE-PROCESS-MODULES) INFO] 1501153970.691: | + | |
| T | T | ||
| + | </ | ||
| + | |||
| + | If you already had a running node in the REPL, you might get the error shown below but that is absolutely normal: ROS simply notifies you that it is going to shut down the previous node and start a new one. | ||
| + | <code lisp> | ||
| + | WARNING: | ||
| + | | ||
| </ | </ | ||

