A distributed digital manufacturing cell setup.
Simulation Environment Setup
Clone ros_mtconnect_2 repository from MTConnect GitHub preferrably in the HOME directory.
git clone https://github.com/mtconnect/ros_mtconnect_2.git
src/path in the
collaborationModelpackage inside the
archetypeToInstance.pymodule (ln 5) accordingly.
(User Preference) Update the adapter host and port information for the devices in
cell.pymodule and in
agent.cfgfile in the
configFilesdirectory of the ros_mtconnect_2 repository.
Install the MTConnect Agent.
Follow instructions for installation and usage on
Update adapter host, port and device file information for the devices in the
agent.cfgof the MTConnect Agent as well. Or simply use
agent.cfgfile in the
configFilesdirectory of the ros_mtconnect_2 repository with an updated
Devicesfile path (ln 1).
Update the agent device file of the Agent to be
combined.xmlwhich can be found in
Python Environment Setup
Some of these steps might not be needed if the necessary python packages are already installed.
Open a terminal.
sudo apt install python-pip
pip install pipenv
There should be a file
pipenv install -d
This will launch the pip environment in the terminal
pip install transitions doublex requests mock mamba
Open a new terminal and in that terminal type:
Add this line to the bottom:
The setup can be tested before being run. Following are the steps to run the spec tests developed for the simulator behavior.
Make sure that necessary python dependencies are installed.
use as is if repository cloned in the HOME directory.
runs all the spec tests available for the different devices, collaboration models and interfaces state-machines and their behaviors.
To run the simulation follow the following steps:
Go to the
src/directory of the
Run the MTConnect Agent with the updated configuration.
agent run ~/ros_mtconnect_2/simulator/src/configFiles/agent.cfg &
cell.pymodule as follows:
Simulation in ROS Environment with RViz
Copyright 2018, VIMANA. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.