-
Notifications
You must be signed in to change notification settings - Fork 2
Robot Preparation
This section will go through the required preparation to allow your Techman Robot to be controlled externally.
First, make sure your TMFlow version is 1.80 or higher. This is an important step, as otherwise most settings mentioned below are not available.
If your TMFlow is outdated, download the latest TMFlow binary at the download center and follow this tutorial to install it.
- Plug in an ethernet cable from your router into the Control Box at the ethernet port labelled 'GigE'. It is important that this exact port is used, as any other won't be properly recognized by TMFlow.
- Go to the
System > Network setting
page. You should see an entry for the ethernet connection you just plugged in. - Select either the 'Get IP from DHCP' or the 'Static IP' option, this is your own preference. 'Static IP' is recommended as that prevents an unexpected change of IP.
- Go to the
Settings > Connection
page and then to the 'Ethernet Slave' tab. If it is currently enabled, disable it. - Open the 'Data Table Setting' overview
- On the top right, set 'Communication Mode' to
STRING
- Check all boxes in the 'Predefined' list of items
- Save the configuration
- Now enable the ethernet slave
Open the TMFlow log by clicking on the top-right icon. You should see a message 'Ethernet slave opened at <robot IP address>:5891
.
To verify that you've executed the previous steps correctly, you can create a simple socket client to listen to the TMFlow server broadcast. To do this, run the following command:
$ nc <robot IP address> 5891
You should now receive a constant stream of internal parameters from the robot.
In order to send motion commands to the robot it should be put in listen mode. This can be done as follows:
- Create a new project
- Connect a 'Listen' node to the 'Start' node
- Start the project
After all of the above steps are complete, your robot should now be executing inside a listen node. To test if the complete communication interface is properly working, run the following:
$ python3 test_connection.py <robot IP address>
Congratulations! You're ready to use techmanpy
! Go to the Library page to discover all available functions.