OpenCart usage in RoboCup Logistics League
Account | Password | |
---|---|---|
opencart-admin | admin | admin |
opencart-user | [email protected] | pass |
mysql-root | root | Ro0t.123 |
gmail | [email protected] | rcll.demo |
- ROS (>= kinetic)
- Rcll-RefBox (http://www.robocup-logistics.org/refbox)
- php
- mysql databse system
- apache webserver
- opencart
-
Make sure your Database setup matches the Credentials.
-
Create a database called opencart_ros.
- Copy the opencart folder from opencart_restore into the web-root of your webserver. (e.g. /var/www/http)
- Make sure the opencart folder has the correct read and write access (refer to opencart installation)
- Change the user and group of the opencart folder to the webdeamons user. For example:
$ cd /var/www/http $ chown apache opencart $ chgrp apache opencart
- Ensure the webdeamons access policies when you are using SELinux. For example:
$ setsebool -P httpd_unified 1
- Enable server to send E-Mails. For example:
$ setsebool -P httpd_can_sendmail 1
- Read sqldump to database system. For example:
$ mysql -u root -p opencart_ros < opencart_ros.sql
- Set your hostname in /your/path/to/htmlorhttp/opencart/config.php
// HTTP define('HTTP_SERVER', 'http://YOURHOSTNAME/opencart/'); // HTTPS define('HTTPS_SERVER', 'http://YOURHOSTNAME/opencart/');
-
Build RefBox according to the install instructions: RCLL Refbox
-
Enable Webshop in rcll-refbox-path>/cfg/config.yaml :
webshop:
enable: true
- Copy ROS Packages opencart_refbox and ros_opencart into a catkin workspace.
- Define an environment variable RCLL_REFBOX_DIR:
$ export RCLL_REFBOX_DIR=<path-to/your-refbox-directory>
- Build catkin workspace with:
$ catkin_make -DREFBOX_PATH=<path-to/your-refbox-directory>
- Launch
$ roslaunch opencart_refbox refbox_controller.launch
Disable SELinux temporarily for opencart installation
Make sure all read/write options are properly set up (chmod 0755) for opencart as well as
the webshop