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

How should I let my "fluent" work well?

asked 2012-10-31 16:57:15 -0500

Jui Wang gravatar image

updated 2012-10-31 16:58:30 -0500

I made a "fluent" on the emacs.

  CPL> (make-fluent :name 'fl :value 1)
  #<FLUENT FL [1]>

It seems working well. But.... when I give the command like below

  CPL> (wait-for (< fl 20))

The error message appear as below.

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

How can I fix it? Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-31 23:23:35 -0500

Lorenz gravatar image

updated 2012-11-01 01:54:04 -0500

While you created a fluent object you didn't bind it to a variable. Try:

(defvar fl (make-fluent :name 'fl :value 1))

Have a look at this tutorial for a more sophisticated example that uses fluents.

edit flag offensive delete link more

Question Tools


Asked: 2012-10-31 16:57:15 -0500

Seen: 191 times

Last updated: Nov 01 '12