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
tutorials:beginner:simple_plans [2019/07/10 14:50] – [Implementing simple plans to move a turtle] gkazhoyatutorials:beginner:simple_plans [2022/02/25 23:15] (current) – [Implementing simple plans to move a turtle] schimpf
Line 6: Line 6:
 **Next Tutorial:** [[tutorials:beginner:cram_prolog|Using Prolog for reasoning]] **Next Tutorial:** [[tutorials:beginner:cram_prolog|Using Prolog for reasoning]]
  
- +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> 
 +<code bash> 
 +$ rosrun turtlesim turtlesim_node 
 +</code> 
 + 
 +And in the REPL the following commands need to be executed: 
 +<code lisp> 
 +CL-USER>(ros-load:load-system "cram_my_beginner_tutorial" :cram-my-beginner-tutorial) 
 +... 
 +CL-USER>(in-package :tut) 
 +... 
 +TUT>(start-ros-node "turtle1"
 +... 
 +TUT>(init-ros-turtle "turtle1"
 +</code>
 ===== Moving the turtle towards a point ===== ===== Moving the turtle towards a point =====
  
Line 28: Line 45:
  
 (defun relative-angle-to (goal pose-msg) (defun relative-angle-to (goal pose-msg)
-  "Given a `pose-msg' as a geometry_msgs/Pose and a `goal' as cl-transforms:3d-vector,+  "Given a `pose-msg' as a turtlesim-msg:pose and a `goal' as cl-transforms:3d-vector,
 calculate the angle by which the pose has to be turned to point toward the goal." calculate the angle by which the pose has to be turned to point toward the goal."
   (let ((diff-pose (cl-transforms:transform-point   (let ((diff-pose (cl-transforms:transform-point
Line 123: Line 140:
  
  
-Moving along predetermined points is all fine and good, but let's have a look at a more flexible way that CRAM provides to specify and reason about parameters ...+Moving along predetermined points is all fine and good, but let's have a look at a more flexible way that CRAM provides to specify and reason about parameters. To learn about motion parameter, we, however, first need to understand how the Lisp Prolog works ...
  
-[[tutorials:beginner:motion_designators|Creating motion designators for the turtlesim]]+[[tutorials:beginner:cram_prolog|Using Prolog for reasoning]]