Raspberry and ROS: Difference between revisions

From Rsewiki
No edit summary
No edit summary
Line 37: Line 37:


  nmap -sP 192.168.2.0/24   
  nmap -sP 192.168.2.0/24   
=== SSH from another computer ===
If the Raspberry has an IP of 192.168.2.39, then:
ssh local@192.168.2.39
Putty or other tools could be used too.


=== Install tools ===
=== Install tools ===

Revision as of 09:03, 13 November 2022

Back to Robobot

Do not use for now

Install Raspberry

Use Raspberry pi imager (download from https://www.raspberrypi.com/software/)

rpi-imager

First configure settings: click the gear icon, and set:

  • enable ssh, hostname, English language, Danish keyboard, possibly SSID, time zone, username (local) and password (remember to spell the password correctly).

then

Select operating system Ubuntu 22.04 64 bit server (for now) and storage, an empty SD-flash of at least 16GB, then write.

When finished mount the SD into the Raspberry

Start Raspberry

If everything is configured as above, then you just need to figure out the IP.

else

You need a screen and keyboard. Connect to the network to get an IP and for updating and date/time.

find your IP address using

sudo apt install net-tools nmap
ifconfig

or from another computer on the same local net (if your local net is 192.168.2.XX)

nmap -sP 192.168.2.0/24  

SSH from another computer

If the Raspberry has an IP of 192.168.2.39, then:

ssh local@192.168.2.39

Putty or other tools could be used too.

Install tools

Install subversion and other tools

sudo apt install subversion

Install ROS

Will use Noetic (if it is ethical to do so).

Follow the instructions in http://wiki.ros.org/noetic/Installation/Ubuntu but it may fail with "The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file."

The repository adds a file /etc/apt/sources.list.d/ros-latest.list. Modify the line in the file to be

deb [trusted=yes] http://packages.ros.org/ros/ubuntu jammy main

and then redo the

sudo apt update

Install ros-desktop-full-dev (or maybe just ros-desktop-full-dev)

sudo apt install ros-desktop-full

Clone the just installed image

Use SD card copier (on Raspberry??)