Git Product home page Git Product logo

cmput412-competition1's Introduction

Instructions to run the Gazebo Simulation and develop the competition locally

In the feedback provided students pointed out to the fact that TCS was extremenly slow and it was often painful to carryout the debugging session. I am writing this to serve as a guide to work on the competition on a local machine. The ideal setup be an Ubuntu installation (preferbly 16 or 18) installed with ROS Kinetic. As many of the students like me don't actually work on Ubuntu and will find this step to be a pain. I have tried running ROS on a VM on MAC OS and it seems to be a better alternative to alteast TCS. I am going to detail the steps i took so that people who want to have local installion can use this with a VM if required.

My Setup : MBP 2019 running MACOS Big Sur. I am using VMware Fusion (https://ualberta.onthehub.com/WebStore/OfferingDetails.aspx?o=6597520e-2ffc-ea11-812f-000d3af41938) which is freely available to UofA students the last time I checked.

VM Ware OS specification : I am using Ubuntu 16.04 LTS with 4 cores and 8 GB RAM ( I think 2 cored and 2/4 GB RAM will also do good). I would recommend keeping atleast 20 GB of hardisk space.

Steps :

  1. Install ROS Kinetic

The first step is to install ROS Kinetic and it is pretty straightfoward if you follow the procedure given on the website. (http://wiki.ros.org/kinetic/Installation/Ubuntu). I think this might not work on Noetic, because some of the turtle bot packages that are being used are not exactly strucuted the same way that they were in kinetic

  1. Installing TurtleBot Dependencies

Install the remaning turtlebot dependencies by running the following command

sudo apt-get install ros-kinetic-turtlebot*

This would install the necessary packages etc for the turtlebot robot.

  1. Make a caktin_ws

Make a catkin_ws and place the competition1 folder inside the src i.e.

mkdir -p ~/catkin_ws/src
cd ~/caktin_ws
catkin_make

Copy the competition 1 folder inside catkin_ws/src and run catkin_make

source ~/catkin_ws/devel/setup.bash

I recommend adding the following 2 lines at the end of your .bashrc

export SVGA_VGPU10=0
source ~/catkin_ws/devel/setup.bash

The first command is specific for VM's as I observed Gazebo was not running inside VM without that command.

  1. Running the simulation

After compiling simply run the launch file and you will things working as normal

roslaunch competition1 main.launch

cmput412-competition1's People

Contributors

dhawgupta avatar dhawgupta-private avatar

Watchers

 avatar  avatar  avatar

cmput412-competition1's Issues

Getting Laser Readings Locally

It seems like you can get laser readings when you load the fake laser with the launch file:

  <!-- Fake laser -->
  <node pkg="nodelet" type="nodelet" name="laserscan_nodelet_manager" args="manager"/>
  <node pkg="nodelet" type="nodelet" name="depthimage_to_laserscan"
        args="load depthimage_to_laserscan/DepthImageToLaserScanNodelet laserscan_nodelet_manager">
    <param name="scan_height" value="10"/>
    <param name="output_frame_id" value="/camera_depth_frame"/>
    <param name="range_min" value="0.45"/>
    <remap from="image" to="/camera/depth/image_raw"/>
    <remap from="scan" to="/scan"/>
  </node>

I think the Gazebo locally simulation somehow doesn't have the Hokuyo laser like TCS.

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.