Skip to content

Commit

Permalink
added README with instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
chcorbato committed Jan 29, 2021
1 parent dac24b5 commit 9280498
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

# knowrob_tiago_dual
This repository contains a simple exame of a KnowRob 2.0 package that defines a simple ontology for a retail scenario at AIRLab Delft and a ROS node to control a [simulation of the AIRLab tiago robot](https://gitlab.tudelft.nl/cor/ro47014/retail_store_lightweight_sim). It uses KnowRob to perform queries on the ontology and drive a simple sense-act control loop for a pick and place task.

**Note**:This repository is based on the example: https://github.com/ipa-hsd/knowrob_moveit

# Installation
Follow `KnowRob` installation steps: https://github.com/knowrob/knowrob to install KnowRob in your ROS workspace.

### Install robot simulation
Follow the instructions at https://gitlab.tudelft.nl/cor/ro47014/retail_store_lightweight_sim to install the simulation in your ROS workspace.

#### Clone `knowrob_tiago_dual` package in your workspace
```
cd <path/to/workspace/src>
git clone https://github.com/chcorbato/knowrob_tiago_dual
cd ..
source /opt/ros/melodic/setup.bash
catkin b
source devel/setup.bash and build again
```

# Usage
```
# Terminal 1
sudo systemctl start mongod.service
roslaunch knowrob knowrob.launch
# Terminal 2
$ rosrun knowrob_tiago_dual knowrob_tiago_dual
```

## Debugging database and reasoning
A convenient method to debug what is going on in the KnowRob DB is to use [`rosprolog_commandline`](https://github.com/knowrob/rosprolog/blob/527e791b917490357bdfb7421becf66984a4cece/README.md#rosprolog-node-console)

```
rosrun rosprolog rosprolog_commandline.py
```

0 comments on commit 9280498

Please sign in to comment.