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

How should I let my "fluent" work well?

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

Jui Wang gravatar image

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

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
2

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

Lorenz gravatar image

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

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

Stats

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

Seen: 203 times

Last updated: Nov 01 '12