ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to - simple process module in CRAM

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

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 -0500

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 image dgerod  ( 2012-11-25 06:36:00 -0500 )edit

Question Tools

Stats

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

Seen: 211 times

Last updated: Nov 25 '12