- Download this zip file from the link provided.
- Unzip the file.
- cd into the new folder (realrobot).
- 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. - Then run
./run_singularity.sh
you are now in the container. - If not in your
.bashrc
, you need to run:source /opt/ros/noetic/setup.bash
- 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 runcatkin_make
. Now runsource 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 runsource devel/setup.bash
in every terminator window.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# ** 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: |
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
OlderNewer