Skip to content

2.2 Launching the program

greg737 edited this page Aug 27, 2015 · 6 revisions

###Prerequisites It is recommended to run the simulator on Ubuntu 14.04 using ROS Indigo and Python.

Click here for instruction on installing ROS Indigo.

###Getting the Software Clone the repo from GitHub.

     $ git clone https://github.com/Ofekw/SoftEng-306-Project-1.git

###Running the program

  1. In terminal navigate to the home directory

     cd SoftEng-306-Project-1
    
  2. Run the project

     ./run.py
    
  3. To terminate the program press Control+C in terminal.

Flags (Limit of one flag) can be given to the launcher to launch in different modes like:

  • -d for Debugging
  • -t for Testing
  • -w for Webservice

Eg: ./run.py -d for debugging.

Debugging

This mode will enable debugging during runtime.

Testing

This mode will generate the required files like the world and entities but will not start the world and the GUI.

Webservice

This mode will launch the project normally and starts the webservice feature.

Click here for more information about the launcher ###Troubleshooting Update ROS_PACKAGE_PATH

  • in terminal call

      gedit ~/.bashrc
    
  • Scroll to the bottom of the file

  • Add

      source ~/<path to workspace>/setup.bash (Leave the other source commands)
    
  • Update the export to

      export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$HOME/<path to workspace>/se306Project1
    
Clone this wiki locally