modbus_cognex_insight package from modbus repo

modbus modbus_cognex_insight modbus_plc_siemens

Package Summary

Tags No category tags.
Version 0.0.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/HumaRobotics/modbus.git
VCS Type git
VCS Version master
Last Updated 2017-06-08
Dev Status UNMAINTAINED
CI status No Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The modbus_cognex_insight package

Additional Links

Maintainers

  • Sven Bock
  • Wagdi Ben yaala

Authors

  • 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 :

Configuration needed

  • 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

Download

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.

image description

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 [1] and then on Playback [2] (bottom left of the interface).

Set the Playback Folder [3] to modbus_wrapper\modbus_cognex_insight\resources\Insight. The image Count should update to 13 [4].

image description

After setting up the filmstrip, click on the Online icon [1].

On the Image view interface click on the Play icon [2] so that the filmstrip is streamed.

image description

Spreadsheet view

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]

image description

Contributors

This package was developed by Sven Bock and Wagdi Ben Yaala at Generation Robots/Humarobotics in Bordeaux, France.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged modbus_cognex_insight at Robotics Stack Exchange