GithubHelp home page GithubHelp logo

gt-rail / trains_interface_htn Goto Github PK

View Code? Open in Web Editor NEW
0.0 13.0 0.0 85 KB

rainsThis is a Python interface that will allow us to create and maintain the state of the HTN in TRAINS

Python 99.60% CMake 0.40%

trains_interface_htn's Introduction

##How to Run rosrun pydisco heres_how_lunchpacking_htn.py false

The second parameter false is for whether or not to turn suggestions on. It is by default true

###Background Services to run with tablebot

Run the Tablebot

roslaunch tablebot_bringup tablebot_bringup.launch

Run the Web Services and MJpegServer

 roslaunch tablebot_heres_how_action_executor heres_how_web_services.launch 

Execute Actions

rosrun tablebot_heres_how_action_executor tablebot_heres_how_action_executor
rosrun tablebot_action_queue tablebot_action_queue

Finally, run the HTN Server

rosrun pydisco heres_how_lunchpacking_htn.py

##Problems and fixes

  1. If the user is stuck in the queue, look at the user ID for that user and run

    rosservice call /rail_user_queue_manager/update_queue [user-id] false 0 30

  2. If the system has an error, that is fine but to reactivate the Interface, you have to run

    rostopic pub /web_interface/execute_action_feedback std_msgs/Bool true

trains_interface_htn's People

Contributors

cjds avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trains_interface_htn's Issues

Error when storing as first in new task

[ERROR] [WallTime: 1464734003.545254] bad callback: <bound method WebInterface.execute_task of <main.WebInterface object at 0x7f35e2288ed0>>
Traceback (most recent call last):
File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py", line 720, in _invoke_callback
cb(msg)
File "/home/csaldanha/projects/ros/src/TrainsHTNPython/heres_how_lunchpacking_htn.py", line 158, in execute_task
success,isGroupable,errorInfo=self.htn.executeTask(taskName, inputs);
File "/home/csaldanha/projects/ros/src/TrainsHTNPython/utils/HTN.py", line 243, in executeTask
success,reason=action.execute(final_input,self.world)
File "/home/csaldanha/projects/ros/src/TrainsHTNPython/utils/Action.py", line 230, in execute
if not world.holding.name == inputs[0].name:
AttributeError: 'NoneType' object has no attribute 'name'

Error with Pack Lunch 1 []

[ERROR] [WallTime: 1464575845.871301] bad callback: <bound method WebInterface.execute_task of <main.WebInterface object at 0x7fcb0fe390d0>>
Traceback (most recent call last):
File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py", line 720, in _invoke_callback
cb(msg)
File "/home/csaldanha/projects/ros/src/TrainsHTNPython/heres_how_lunchpacking_htn.py", line 157, in execute_task
success,isGroupable,errorInfo=self.htn.executeTask(taskName, inputs);
File "/home/csaldanha/projects/ros/src/TrainsHTNPython/utils/HTN.py", line 238, in executeTask
success,reason=action.execute(final_input,self.world)
File "/home/csaldanha/projects/ros/src/TrainsHTNPython/utils/Action.py", line 164, in execute
return True,reason
UnboundLocalError: local variable 'reason' referenced before assignment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.