Skip to content

RBE300X-Lab/RBE3002_info

Repository files navigation

RBE 3002 Info Repository

Look below for guidance on the labs

The SAs have provided a sample .bashrc file, which can be found HERE

To install, run: cd ~ && curl -O https://raw.githubusercontent.com/RBE300X-Lab/RBE3002_info/main/.bashrc && source .bashrc in your terminal

WE ARE USING ROS NOETIC AND UBUNTU 20.04

These are the only supported versions

Having Trouble With ROS or Your TurtleBot

TurtleBot Guidelines

TurtleBot Netowork Configuration Guide

DO NOT DO:

  • Keep the battery with the robot, instead return it to the charging station and plug it in
  • Use the robot on a random table where it might fall

PLEASE DO:

  • Use the cable instead of the battery as much as possible (the batteries have a limited number of recharges)
    • If you are using the robot with the cable, place the robot on the power supply so the wheels do not touch the ground (no robots falling on the floor)
  • Always store the battery in the provided bag
  • Use the robot only on the ground or in the arena we made available

Connecting to a Turtlebot

  • To connect to your Turtlebot, type ssh [email protected] where TURTLEBOT-NAME is the name on the turtlebot (ignore the number)
    • The passowrd for all turtlebots is turtlebot
  • To disconnect from the Turtlebot (and leave the robot on), type exit in the terminal you ssh'ed from
  • To disconnect and shutdown the Turtlebot, type sudo shutdown now in the terminal you ssh'ed from

Installing ROS

  • Please copy and paste terminal commands while running the ROS installation. You can do this CTRL + SHIFT + C to copy from the terminal and CTRL + SHIFT + V for pasting into the terminal

  • If you have errors at sudo apt install curl, run sudo apt-get install --fix-missing and then try the first command again. Proceed from there.

  • You will need to add source /opt/ros/noetic/setup.bash to your .bashrc file. This file is run every time you open a new terminal, and will source ROS automatically for you. You can access this file by running gedit ~/.bashrc (or similar text editing options). Paste source /opt/ros/noetic/setup.bash into this file.

  • Also add source ~/catkin_ws/devel/setup.bash to your .bashrc as well, this can prevent issues when adding packages to your catkin workspace

  • There is a sample .bashrc in this repository, which can be found HERE

  • Note in the above command that you should be using ROS Noetic. Anytime you see kinetic or melodic in a command, you need to replace it with noetic.

Faster Gazebo Quit

  • Edit the roslaunch nodeprocess Python script using sudo nano /opt/ros/noetic/lib/python3/dist-packages/roslaunch/nodeprocess.py
    • Other editors are allowed, but this does require sudo access (editing files in protected directories), so it cannot be done on the lab computers
  • Change the default timeout values:
    • DEFAULT_TIMEOUT_SIGINT on line 59 will make Gazebo quit faster, we suggest changing this value from the default 15 to 1
    • DEFAULT_TIMEOUT_SIGTERM on line 60 will make ROS quit faster if something hangs and will not close any other way, keeping the default 2 is fine
      • If something has hung (like a Python infinite loop), you can also force quit them from the terminal using CTRL + \

Fixing View Frames

  • With the switch to Python3, the tf scirpt view_frames is broken, to fix it, follow these instructions
  • Edit the source code by running: sudo nano /opt/ros/noetic/lib/tf/view_frames
    • Other editors are allowed, but this does require sudo access (editing files in protected directories), so it cannot be done on the lab computers
  • Replace line 89 (m = (r.search(vstr))) with m = r.search(vstr.decode('utf-8'))

Preconfigured Ubuntu 20.04 VMs for RBE 3002 for ARM Macs

Username: rbe | Password: RBE3002

Parallels Steps

  1. Download the RBE3002.pvm.zip from the HERE
  2. Move the RBE3002.pvm.zip file to your Parallels VM Directory (ex: /Users/<Your Username>/Parallels/)
  3. Unzip the file (this will take a few minutes)
  4. Open Parallels Desktop
  5. Drag the new .pvm file into Parallels
  6. Open the VM settings (click the gear)
  7. Navigate to Hardware -> Network
  8. Change Source to Wi-Fi
  9. Click Advanced.. and then Generate a new MAC Address
  10. Log into netreg.wpi.edu and click Register New Device
  11. Use the newly generate MAC Address to register your VM on the network
  • If you get either a Multicast MAC Addresses or Locally Administered Addresses (LAA) errors, change the second character of the MAC Address (the X: 0X-B0-D0-63-C2-26) to an 8 and retry
  • This is because the 2 least significant bits of the first octet (the first two characters) are used as flags for device administration (the Universal vs Local and Unicast vs Multicast bits respectively) for WPI Netreg they must be set to 0

UTM Steps

  1. Download the RBE3002.utm.zip from the HERE
  2. Move the RBE3002.utm.zip file to your UTM VM Directory

          (ex: /Users/<Your Username>/Library/Containers/com.utmapp.UTM/Data/Documents/)

  1. Unzip the file (this will take a few minutes)
  2. Open UTM (there should be a new VM called RBE 3002)
  3. Open the VM settings (click the sliders in the top right of the window)
  4. Navigate to Network
  5. Change Network Mode to Bridged (Advanced)
  6. Generate a new MAC Address using random
  7. Log into netreg.wpi.edu and click Register New Device
  8. Use the newly generate MAC Address to register your VM on the network
  • If you get either an Locally Administered Addresses (LAA) or Multicast MAC Addresses errors, change the second character of the MAC Address (the X: 0X-B0-D0-63-C2-26) to an 8 and retry
  • This is because the 2 least significant bits of the first octet (the first two characters) are used as flags for device administration (the Universal vs Local and Unicast vs Multicast bits respectively) for WPI Netreg they must be set to 0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published