Installation¶
Prerequisites¶
OpenMETA Model Exploration and Artifact Generation Machine:
- Windows
- Git
- Java
- CREO Parametric 3.0 (required for CAD-to-URDF workflows)
ROS Deployment and(or) Gazebo Simulation Machine:
- Ubuntu 16.04.3 LTS
- NVIDIA Graphics Chipset
OpenMETA¶
On Windows machine:
- Download the latest version of OpenMETA from https://www.metamorphsoftware.com/openmeta/.
- Open the installer.
- Agree to the license terms and conditions.
- Left-click Install.
- Note: If this is your first time using OpenMETA, we recommend that you complete the PET Tutorial to develop a basic understanding of the tools!
TASCK Models and Workflows¶
On Windows machine:
- Create a directory named
tasck. - Clone the
tasck-core-modelsrepository intotasck:
git clone https://github.com/metamorph-inc/tasck-core-models
- Clone the
openmeta-ros-core-workflowsrepository intotasck:
git clone https://github.com/metamorph-inc/openmeta-ros-core-workflows
PyYAML Dependency¶
- Open Window Command Prompt in Administrator Mode
- Install
pyyamldependecy
"C:\Program Files (x86)\META\bin\Python27\Scripts\python.exe" -m pip install pyyaml
SSH¶
On Windows machine:
Many TASCK workflows require a transfer of files and commands between the Windows (OpenMETA) and Linux (ROS & Gazebo) machines via SSH.
- Generate a SSH key named
gazebo_ros_machine
ssh-keygen
- Copy SSH Public Key to Linux machine
scp ~/.ssh/gazebo_ros_machine.pub [LINUX_USER]@[LINUX_IP/LINUX_HOSTNAME]:~/.ssh/authorized_keys
Note
Alternatively, you can manually append the contents of gazebo_ros_machine.pub to the authorized_keys file on the Linux machine.
Create/edit config file in user’s .ssh directory (e.g.
C:\Users\metamorph\.ssh\config)Host openmeta-gazebo-ros-machine HostName 192.168.1.133 User metamorph IdentityFile "C:/Users/metamorph/.ssh/gazebo_ros_machine" StrictHostKeyChecking no
ROS and Gazebo¶
On Ubuntu 16.04.3 LTS machine:
Install Updates:
sudo apt-get update
sudo apt-get install
sudo apt-get dist-upgrade
Install ROS Kinetic/Gazebo 7.0:
- Configure Ubuntu repositories to allow “restricted,” “universe,” and “multiverse” following the Ubuntu guide.
- Setup computer to accept software from package.ros.org:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- Setup your keys:
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt-get update --include-eol-distros
sudo apt-get install ros-kinetic-desktop-full -y
Initialize rosdep:
sudo rosdep init rosdep update
- Setup environment:
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrc
Building ROS Workspace¶
On Ubuntu 16.04.3 LTS machine:
sudo apt-get install python-wstool -y
mkdir -p ~/tasck/catkin_ws
wget --header="Authorization: token <OAUTH-TOKEN>" -O ~/tasck/tasck_core_models.rosinstall https://raw.githubusercontent.com/metamorph-inc/tasck-core-models/master/tasck_core_models.rosinstall
Note
You must have GitHub access to the tasck-core-models repository. To use the wget command above, you also need a GitHub personal access token. See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
cd ~/tasck/catkin_wswstool init src ~/tasck/tasck_core_models.rosinstall
wstool update -t src
rosdep install --from-paths src --ignore-src -r -y
catkin_make
Test Bench Executor¶
On Ubuntu 16.04.3 LTS machine:
Some TASCK workflows require the OpenMETA testbenchexecutor to be installed on the Linux machine.
- Install testbenchexecutor to Linux machine
python -m pip install --extra-index-url https://pypi.metamorphsoftware.com/ testbenchexecutor
Note
You may need to use sudo.