tue-robotics / hero_bringup

bringup for the hero robot
2 stars 2 forks source link

hero_bringup

CI

Launch, machine and parameter files required to bringup the HERO robot

HERO1

(Re-)install HERO

Before clean install

Clean install

After clean install

Directly on the robot:

The following steps need to be done on the robot(hsr-hmi) via the GUI:

The following steps can be done via SSH or directly on the robot (SSH: ssh administrator@hero1.local)

HERO display

First install

  1. Download the latest hero-display.AppImage from https://github.com/tue-robotics/hero-display/releases
  2. Move the file to sudo mv ./hero-display.AppImage /opt/tue/bin/hero-display.AppImage It might be needed to create the target directory: sudo mkdir -p /opt/tue/bin
  3. Make sure all users have all rights: sudo chmod a+rwx /opt/tue/bin/hero-display.AppImage
  4. On HERO (hsr-hmi user) go to Startup Applications and add a new item with /opt/tue/bin/hero-display.AppImage as command.
  5. Run it once manually or reboot HERO

Update

  1. Close the current hero-display session
  2. Repeat steps 1-3 & 5 from First install

Services

The following services are running on HERO1. Normally these are ran from the demo account:

HERO2

(Re)-install

Before install

Install

Services

The following services are running on HERO2. Normally these are ran from the demo account:

Power settings

To prevent HERO2 to shut down on unplugging the power supply, some power settings need to be changed. (https://askubuntu.com/a/1132068)

gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0
gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action nothing
gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action nothing
gsettings set org.gnome.settings-daemon.plugins.power critical-battery-action nothing
# Copy settings from amigo account to gdm account
OLD_IFS=${IFS}; IFS=$'\n'; for x in $(sudo -Hu amigo gsettings list-recursively org.gnome.settings-daemon.plugins.power); do eval "sudo -Hu gdm dbus-launch gsettings set ${x}"; done; IFS=${OLD_IFS}; unset OLD_IFS

HERO demo laptop

(Re-)install

Toyota software compatibility

HERO uses many of the Toyota launch structure. This requires compatibility of launch file arguments, frame names, namespacing, etc.. In case of incompatibility it can look like a local issue. To exclude any uncertainty a list of compatible package versions is maintained. There is a seperate list for the robot and dev pc's.

hero-start contains a required node, which checks the currently installed set of Toyota software packages. In case of a package, which is not tracked, a warning is shown. In case of a tracked package with an incompatible version, an error is shown and hero-start will terminate.

In case of an incompatible package version, you can add the new package version(s) to the list manually or run the update script with the add option: rosrun hero_bringup update_toyota_software_version --add. In case this seems to run without any issues (node names, topic names, service names, frame names, etc.), you can open a PR to update the tracked compatibility list. In case of any issues, the issues should be solved and the compatibility list should be reset. You can reset the compatible package version of the packages causing the issues manually or reset the entire list by running the update script with the 'reset' option: rosrun hero_bringup update_toyota_software_version --reset. You can try to fix (small) issues yourself, but it is recommended to ask @MatthijsBurgh to fix these issues.