Basic ROS node running a web server for testing the Ohmni robot GUI.
This package uses Crow for implementing the microservices.
- Download Crow's source code
git clone https://github.com/CrowCpp/Crow.git
- Run
mkdir
build inside of crow's source directory - Navigate to the new "build" directory and run the following:
cmake .. -DCROW_BUILD_EXAMPLES=OFF -DCROW_BUILD_TESTS=OFF
- Run
make install
.
We can now download this package.
- From the
src
directory of a Catkin workspace, clone this package.
git clone https://github.com/pstlab/ohmni_gui_test
- Build the catkin workspace either through
catkin build
or through
catkin_make
- Source the catkin workspace
source devel/setup.bash
- If the node is not executed on the robot, change the host and the port in the
launch/ohmni.launch
file and in thestatic/main.js
. - Execute the ROS node.
roslaunch robot_gui ohmni.launch
- Load the
http://127.0.0.1:8080/
page on the robot, taking care to replace host and port acording to the changes, if any, made in point 4.