Difference between revisions of "Esd on windows"

From Wiki for iCub and Friends
Jump to: navigation, search
(CMake: add details on how to compile the ecan device)
 
Line 16: Line 16:
  
 
== CMake ==
 
== CMake ==
 +
 +
To use the Esd gray box, you need to compile the ecan yarp driver, that is available in the [https://github.com/robotology/icub-main icub-main] repository (instructions to compile icub-main in Windows are available at [[Windows:_installation_from_sources]].
 +
 +
In particular you need to set to ON the ENABLE_icubmod_ecan CMake option.
  
 
At some point in the compilation process cmake will expect to locate the SDK library and header files. The following procedure will be used:
 
At some point in the compilation process cmake will expect to locate the SDK library and header files. The following procedure will be used:

Latest revision as of 14:27, 10 June 2016

This page provides instructions for installing device driver and SDK for the ESD can bus.

Common instructions

Both device driver and SDK comes in a CD shipped with the Esd can bus device. We provide them in a zip file. Get the esdcan-usb-mini.zip file from: http://www.icub.org/download/drivers/windows and unzip it in a temporary directory. Important: this device driver only works with the usb-mini board (the gray one). Our software does not currently support other type of devices from esd (i.e. the blue one).

Device Driver

Installation of the device driver is straightforward. It boils down to plugging the device on your usb port and browsing to the location of the directory in which you have unzipped the zip file.

See Section "Installation Under Windows 2000/XP" in docu/English/softare/manual.pdf, for a detailed description.

SDK

Run CAN_SDK/CANSDK.EXE and follow the instructions.

CMake

To use the Esd gray box, you need to compile the ecan yarp driver, that is available in the icub-main repository (instructions to compile icub-main in Windows are available at Windows:_installation_from_sources.

In particular you need to set to ON the ENABLE_icubmod_ecan CMake option.

At some point in the compilation process cmake will expect to locate the SDK library and header files. The following procedure will be used:

  • Check if the environment variable ESDCANAPI_DIR exists and use it.
  • Check if the environment variable CanSdkDir exists and use it. This environment variable is set by the CANSDK.exe installer.
  • Check in a default location, i.e. C:/Program Files/CAN

This means that in most cases you do not need to define new environment variables for cmake to work. However we recommend you do define the environment variable ESDCANAPI_DIR in the following cases:

  • you did not use the CANSDK.EXE installer
  • you moved the sdk
  • in case of doubt (for example if you have used an old version of the device driver/sdk)


Remember that ESDCANAPI_DIR should point to the root of the SDK directory tree (e.g. C:/Program Files/CAN).