JdeRobot / VisualStates

Tool for visual programming of robots using automata
https://jderobot.github.io/VisualStates/
GNU General Public License v3.0
8 stars 8 forks source link

Issue with running kobuki obstacle avoidance in python with ROS1 #136

Closed pankhurivanjani closed 5 years ago

pankhurivanjani commented 5 years ago

I am getting errors in running this example with visualstates

My System Info: OS: ubunutu 18.04 ROS: Melodic Python: In this case, python 2 itself

Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.
runtime gui enabled
WARNING: QApplication was not created in the main() thread.
Exception in thread Thread-7:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/pankhuri/catkin_ws/src/VisualStates/src/visualstates/codegen/python/state.py", line 97, in run
    if tran.checkCondition():
  File "/home/pankhuri/catkin_ws/src/kobuki_obstacle_avoidance/kobuki_obstacle_avoidance.py", line 104, in checkCondition
    self.namespace.calculate_obstacle()
AttributeError: Namespace0 instance has no attribute 'calculate_obstacle'
sudo-panda commented 5 years ago

Its a VisualStates-examples issue so could you open it there?

jmplaza commented 5 years ago

sure, @pankhurivanjani has just created it there