Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to consume items #9

Closed
fredyvilla opened this issue Jan 13, 2016 · 1 comment
Closed

Ability to consume items #9

fredyvilla opened this issue Jan 13, 2016 · 1 comment

Comments

@fredyvilla
Copy link
Owner

Ability to select an item from quick bar and try to consume it (typically right-clicking)

@AndrewBuck
Copy link
Collaborator

The spockbot plugin for doing that kind of stuff is the Interact plugin. The digging code is also in the interact, but I ended up copying the digging code to the opencog codebase rather than calling the spockbot functions. We should figure out the best way of interfacing with spockbot like this. Our implementation is somewhat different because we have ROS driving it, but it should be possible to do this in general.

Here is the function you want to eat the thing in the currently active hotbar slot. We need to set up message pipelines for interacting with the inventory system to move things around and select a particular item, and then a separate pipeline for sending the actual eating signal. The pipelines are not too difficult to build, but we also need to come up with a good way of doing this since we will need a lot of these things.

https://github.com/SpockBotMC/SpockBot/blob/7747f01fceaa4d575ee1f6e34dc01ac8566c7c3c/spockbot/plugins/helpers/interact.py#L176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants