/* $Id: mskccRobotPython.i,v 1.7 2006/07/13 04:47:56 pkaz Exp $ */ %module mskccRobotPython %header %{ #include "cisstCommon/cisstCommon.i.h" #include "cisstVector/cisstVector.i.h" #include "mskccRobot.h" typedef mskccRobot::RobotException RobotException; typedef mskccRobot::ExcpPowerOff ExcpPowerOff; typedef mskccRobot::ExcpAmpError ExcpAmpError; typedef mskccRobot::ExcpMotorOff ExcpMotorOff; typedef mskccRobot::ExcpNotHomed ExcpNotHomed; typedef mskccRobot::ExcpForceProg ExcpForceProg; typedef mskccRobot::ExcpLimitError ExcpLimitError; typedef mskccRobot::ExcpSystemError ExcpSystemError; #ifdef UNUSED typedef mskccRobot::ExcpNeedleNotInit ExcpNeedleNotInit; #endif typedef mskccRobot::ExcpWaitMotion ExcpWaitMotion; %} // For exceptions, rename "what" to "__str__" %rename(__str__) what; %include "std_string.i" %include "std_except.i" // We don't really need these enum values in Python %ignore mskccRobot::X; %ignore mskccRobot::Y; %ignore mskccRobot::Z1; %ignore mskccRobot::Z2; %import "cisstCommon/cisstCommon.i" %import "cisstVector/cisstVector.i" %include "mskccRobot.h" /* $Log: mskccRobotPython.i,v $ Revision 1.7 2006/07/13 04:47:56 pkaz Updated for current version of cisst libraries. Revision 1.6 2005/08/03 20:22:09 alamora updated name changes for swig includes Revision 1.5 2005/01/24 22:08:41 alamora Modified to derive from the cmnGenericObject base class Now using the object register and logger Replaced "cout"s with logs Destructor is now virtual Removed IFDEF UNUSED code (see previous revision notes) Revision 1.4 2005/01/22 18:00:25 pkaz Removed "move" and "get" methods that refer to Cannula or RegProbe position because that functionality is provided in the application software (e.g., Slicer). For now, code is removed by inserting #ifdef UNUSED. Revision 1.3 2005/01/20 05:49:54 pkaz Updated for Swig 1.3.24. Also, changed #define to typedef and added %rename and %ignore statements. Revision 1.2 2005/01/14 22:51:34 pkaz Added exceptions. Not quite working with Python. Revision 1.1 2004/10/27 15:55:54 anton Added CMakeLists.txt files and minor modifications to compile the code. */