Ask Your Question
0

How to - simple process module in CRAM

asked 2012-11-25 04:19:11 -0600

dgerod gravatar image

I am learning about CRAM designators and process modules. At this moment I am trying to create a stupid process module to check if I understand how the system works.

I am following http://ros.org/wiki/cram_process_modules (this tutorial) but I have not succeeded.

When I execute the following code:

CPL> (def-process-module navigation (input-designator)
          (let ((goal-pose (reference input-designator)))
            (or (execute-navigation-action goal-pose)
                (fail 'navigation-failed))))

An error is raised in SLIME:

The variable NAVIGATION is unbound.
    [Condition of type UNBOUND-VARIABLE]

I don't understand why this is happening. "Navigation" is the name of the process module I am trying to define, am I right? Therefore, I can understand an error raised because "execute-navigation-action" is not defined but not in "navigation". What I am missing?

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-11-25 06:02:01 -0600

Lorenz gravatar image

You are in the wrong package. First load the package cram_process_modules:

(ros-load:load-system "cram_process_modules" :process-modules)

Then switch to the right package:

(in-package :cpm)
edit flag offensive delete link more

Comments

Perfect!!! Thanks a lot.

dgerod gravatar imagedgerod ( 2012-11-25 06:36:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-11-25 04:19:11 -0600

Seen: 103 times

Last updated: Nov 25 '12