Code Monkey home page Code Monkey logo

knowrob_ameva's Introduction

knowrob_ameva

Only tested on Ubuntu 18.04

Knowrob installation

required dependency

  1. install ROS-Melodic https://wiki.ros.org/melodic/Installation/Ubuntu
  2. install mongodb https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
  3. install swi-prolog https://www.swi-prolog.org/build/PPA.html
  4. install mongo-c-driver http://mongoc.org/libmongoc/current/installing.html

build knowrob project

mkdir catkin_ws
cd catkin_ws
rosdep update
wstool init src
cd src
wstool merge https://raw.github.com/knowrob/knowrob/master/rosinstall/knowrob-base.rosinstall
wstool update
rosdep install --ignore-src --from-paths .
cd ~/catkin_ws
catkin_make 

Launch knowrob

Terminal One

  1. make sure mongodbd is running
  2. run following commands
cd catkin_ws
source devel/setup.bash
roslaunch knowrob knowrob.launch

Terminal Two

  1. Two ways to start swi-prolog. Personally prefer the first way.

rosrun rosprolog rosprolog_commandline.py rosrun rosprolog rosprolog 2.launch swi-prolog and play with pre-defined predicate

cd catkin_ws
source devel/setup.bash
rosrun rosprolog rosprolog_commandline.py 
// or we can use this 
// should be able to use the prolog
tripledb_load('')  -  for parsing owl file, probably need to use absolute path
triple_tell(s,p,o) - It's similar to rdf_has or 
owl_has

Launch Knowrob

Install dependency

  1. Install libwebsocket https://stackoverflow.com/questions/29470447/how-to-install-libwebsocket-library-in-linux sudo apt-get install libwebsockets-dev
  2. Install protobuf https://gist.github.com/diegopacheco/cd795d36e6ebcd2537cd18174865887b

Run knowrob

  1. Clone project in catkin_ws/src
  2. build the package catkin_make knowrob_ameve
  3. Two ways to load the package
//Method one:
rosrun rosprolog rosprolog_commandline.py
register_ros_package('knowrob').
//Method two:
rosrun rosprolog rosprolog knowrob_ameva

knowrob_ameva's People

Contributors

xxjunxx avatar

Stargazers

Andrei Haidu avatar

Watchers

James Cloos avatar Andrei Haidu avatar  avatar

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.