Skip to content

Instantly share code, notes, and snippets.

View rpapallas's full-sized avatar

Rafael Papallas rpapallas

View GitHub Profile
@rpapallas
rpapallas / installation.sh
Created February 1, 2023 17:39
ROS Noetic for Turtlebot
sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
apt update
apt install -y \
ros-noetic-desktop-full \
ros-noetic-catkin \
ros-noetic-rqt-* \
ros-noetic-gazebo-*
. /opt/ros/noetic/setup.sh
@rpapallas
rpapallas / main.py
Last active March 23, 2023 12:52
Importing scripts
# ...
# ** Don't change this path **
PROJECT_DIR = os.path.expanduser('~/catkin_ws/src/group_project')
import sys
sys.path.insert(0, f'{PROJECT_DIR}/scripts')
# **Import files in scripts from here ...**
# for example a class called CluedoDetector in scripts/cluedo_detector.py can be imported like so:
@rpapallas
rpapallas / README.md
Created May 11, 2023 14:18
Running real-robot commands in singularity
  1. Download this zip file from the link provided.
  2. Unzip the file.
  3. cd into the new folder (realrobot).
  4. Run ./enable_usb_rules.sh on your machine (not in the container). Will ask you for root password, will copy some USB rules under /etc/udev/rules.d to allow the laptop to recognise the robot and the camera when connected through USB.
  5. Then run ./run_singularity.sh you are now in the container.
  6. If not in your .bashrc, you need to run: source /opt/ros/noetic/setup.bash
  7. Within the unzipped folder, there is a new catkin_ws (different from your ~/catkin_ws, feel free to merge if you want). Go there: cd catkin_ws (not ~/catkin_ws but probably ~/Downloads/realrobot/catkin_ws) and run catkin_make. Now run source devel/setup.bash You should be able to run the commands on the real robot. You can open multiple terminal windows using: terminator & from that main singularity window. You will need to run source devel/setup.bash in every terminator window.
@rpapallas
rpapallas / README.md
Created December 8, 2023 12:56
turtlebot 3 networking debugging

Both on Wifi:

PING kaylah.local (192.168.0.102) 56(84) bytes of data.
64 bytes from 192.168.0.102: icmp_seq=1 ttl=64 time=1.88 ms
64 bytes from 192.168.0.102: icmp_seq=2 ttl=64 time=3.01 ms
64 bytes from 192.168.0.102: icmp_seq=3 ttl=64 time=1.52 ms
64 bytes from 192.168.0.102: icmp_seq=4 ttl=64 time=1.63 ms
64 bytes from 192.168.0.102: icmp_seq=5 ttl=64 time=4.73 ms
64 bytes from 192.168.0.102: icmp_seq=6 ttl=64 time=1.71 ms