|Tags||No category tags.|
|CI status||No Continuous Integration|
|Package Tags||No category tags.|
Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)
- Sven Bock
- Wagdi Ben yaala
- Sven Bock
modbus cognex insight
This package is a bridge between a python modbus client and a Cognex In-Sight camera as modbus server. A job test is present in this package to test it without a camera.
This package includes:
- A job test to load in In-Sight Explorer
- A ROS node to interface a Cognex In-Sight Camera with a ROS environment
Inspected image :
This package was tested on Ubuntu 14.04 with ROS Indigo .
To be completely tested, this package needs a second workstation that has a Microsoft Windows (7/8/8.1) environment with Cognex vision software .
This package was tested with a Cognex In-Sight 7200 Camera
Running the ROS node / modbus client
For starting a modbus client that connects to a modbus server on the cognex insight camera, use the command below. Before running the node, replace the ip address with the address from your camera or simulator. Try first, if you are able to ping it and verify that the modbus server is activated.
$ rosrun modbus_wrapper modbus_client_insight7200.py _ip:="192.168.199" _sim:=True
In the default configuration the cognex simulator is used. As the mechanics are a little bit different for the real camera, change the argument to "_sim=False", in order to use the real camera.
Install In-Sight Explorer 4.9.3
You will find the software here In-Sight Explorer 4.9.3 Software
Get a key to use the emulator
To use In-Sight Explorer without a camera a useful emulator is present in the software. However a key is needed to unlock the emulator software.
The following instructions will help with this process : In-Sight® Key Generator
Load the job test file in In-Sight Explorer
- The job test to load is in /resources/Insight , its name is CognexInsight7200.job.
Click on File and Open Project and select this job file.
Load the Filmstrip and go Online
To test this package without a camera, a filmstrip has to be added.
In the main interface click on Filmstrip  and then on Playback  (bottom left of the interface).
Set the Playback Folder  to modbus_wrapper\modbus_cognex_insight\resources\Insight. The image Count should update to 13 .
After setting up the filmstrip, click on the Online icon .
On the Image view interface click on the Play icon  so that the filmstrip is streamed.
To create this test job, 4 inspections were done on the initial image.
A job change system using the modbus package was put together thanks to this package.
The modbus package (here used as a client) send the job id (one of the 4 inspections) to the modbus server running on the emulator (or the real camera).
The job id is read in the ReadModbus function of the In-Sight spreadsheet.
Each time a job is selected, all the other jobs are deactivated.
The result is then sent to the ROS modbus client in an array:
[CameraIsAlive, Job_ID, Pass/Fail, String containing some text , String containing the barcode]