ImageVerifierCode 换一换
格式:PPT , 页数:25 ,大小:1.17MB ,
资源ID:373044      下载积分:2000 积分
快捷下载
登录下载
邮箱/手机:
温馨提示:
如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝扫码支付 微信扫码支付   
注意:如需开发票,请勿充值!
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【http://www.mydoc123.com/d-373044.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(The CISST Software Package.ppt)为本站会员(unhappyhay135)主动上传,麦多课文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文库(发送邮件至master@mydoc123.com或直接QQ联系客服),我们立即给予删除!

The CISST Software Package.ppt

1、The CISST Software Package,Peter Kazanzides Johns Hopkins University www.cisst.org November 16, 2005,Outline,Background and Motivation Where are we going? CISST Libraries Foundation libraries Real time support Development process and tools Tour of web site,Historical Background,ERC-developed softwar

2、e was captured in: CIS library Common tools, such as logging Vectors, matrices, transformations Interface to tracking systems Numerical methods, registration, MRC library Common interface to different robots Essentially a “wrapper” around API for hardware that provides low-level control,Robot Contro

3、ller Architecture,Supervisory/Trajectory Control (100 Hz),Application (non-real-time),Hardware,Interpolate Setpoint,Compute Control,Read Sensors,Servo Control (1000 Hz),Application,API,Motivation for CISST Package,Improve process, design, testing, portability, maintainability for open source release

4、 and to facilitate clinical use: Programming standards Design reviews Portable build tools Automated testing User documentationEnable the development of real-time software for physical devices such as robots and trackers,Motivation for Real Time Support,Motivated by transition from motion controller

5、 boards (with processor and vendors software) to I/O boards (no processor) and research software,Motion Controller Boards (intelligent hardware),I/O Boards (non-intelligent),Example: Teleoperation of Snake Robot,LoPoMoCo,Control PC (RTAI/Linux),I/O and Amps,I/O and Amps,LoPoMoCo,Control PC (RTAI/Lin

6、ux),Master Robots,Slave Robots,Example: Image-Guided Robot for Rodent Research,PC (Windows),Robot,3D Slicer,Where are we going?,C+ Software Libraries cisst libraries other libraries,Frameworks Based on system complexity Component of larger system,Binary components hardware interfaces research algori

7、thms,static linking,frozen spots,hot spots,Distributed Interface,dynamic loading,CISST Libraries,(Mostly) Stable Open source* Sept 2005 cisstInteractive Nov 2005 Beta version Open source Jan 2006 Work in process cisstTracker Jan 2006 cisstMRC June 2006,*www.cisst.org, current license based on Slicer

8、 2.x, goal is Slicer 3.0,cisstVector,Vectors, Matrices and Transformations Extensive use of C+ templates (metaprogramming) Fixed size and dynamic Fixed size especially suited for real-time code Operations on slices and sub-regions References to vectors and matrices Improves interoperability with oth

9、er libraries Matrices in row-major or column-major format C+ wrapping of NetLib (numerical methods, including CLAPACK, MINPACK),Fixed Size Vectors and Matrices,Templated by: Element type (int, double, etc.) Dimension (number of rows, columns, etc.) Efficiency considerations (for templated dimension)

10、: Loop is easy, but not efficient for small vectors: int Sum() sum = 0for (i=0; i _size; i+)sum += datai;return sum; Recursive function also not efficient: int RecursiveSum(int size)return (size = 1) ? data0: RecursiveSum(size-1) + datasize-1; int Sum() return RecursiveSum(_size); Recursive template

11、 (template metaprogramming) is efficient: Compiler “unwraps” recursive template into straight-line code,Fixed Size Vectors and Matrices,Operations provided by “recursive engines”: Classify operations by: Number of operands Type of operands Type of result Storage location for result Small number of e

12、ngines handle all operations Example: same engine for addition, subtraction, ,cisstNumerical,C+ Interface to NetLib code (Fortran) Versions for fixed size and dynamic operands Can pre-allocate solution object More efficient if multiple calls made vctDynamicMatrix A(rows,cols,VCT_COL_MAJOR); nmrSVDSo

13、lutionDynamic solution; solution.Allocate(A); while (1) vctRandom(A,0.0,10.0);nmrSVD(A, solution); / A = U*S*Vcout solution.GetU() ,cisst vs. VNL,cisstVector/cisstNumerical benefits: More efficient fixed size vectors (few loops) Stride allows operations on slices (e.g., can access matrix columns as

14、vectors) Matrices can be in column-major format (more efficient with NetLib) VNL benefits: Mature package, larger development community More features (polynomials, Matlab file I/O, ) Support for more compilers,Python Interface,Automatic wrapping of C+ for Python (Swig) Object registry to share objec

15、ts between languages Can load cisst libraries into Python shell Can start Python shell from C+ program GUI features provided by cisstInteractive (using wxWidgets),Device Interface,Device Hierarchies:,Tracker Tool GetPosition,Robot Tool GetPosition MoveToPosition,Should be able to use robot in place

16、of a tracker,Device Interface,Our solution: query with string to obtain command object (Command Pattern),Tracker Tool Provides,Robot Tool Provides,ddiDeviceInterface Configure Provides GetMethodByName,Initialize (e.g., from XML),Return list of implemented operations (strings),Return command object f

17、or specified operation (string),Abstract Base Class, “GetPosition” , “GetPosition”, “MoveToPosition” ,Device Interface, dev = ptr to device devConfigure(); cmd = devGetMethodByName(“GetPosition”); ,public:void Startup();,void Run(); ;, cmdExecute(data); ,class myTask : public rtsTask private:ddiDevi

18、ceInterface* dev;ddiCommand* cmd;,Non-real-time,Real-time,Real Time Support,Devices and Tasks should be interchangeable: Example: Servo control via an intelligent device or via a software task Solution: Task class derived from device class, but also includes a device,ddiDeviceInterface,rtsTask,Real

19、Time Support,Maintain time history of important state data State Data Table (SDT), indexed by time and data id,Task communication with Command Pattern: Read from Task SDT or Device Write to Task Mailbox or Device Command object can handle remote communications,High-level task (low frequency),Low-lev

20、el task (high frequency),Device Interface,mailbox,SDT,mailbox,SDT,Hardware,Command objects,Command objects,cisstRealTime,Development Tools,CTest,Build Environment,LaTeX,Doxygen,SWIG,Compile,Compile,Library Binaries (static & dynamic, e.g., cisstVector, cisstCommon),Test Programs,Applications,Optiona

21、l Interpreter (IRE),Wrapped Source,Formatted Documentation (e.g., pdf, html),(e.g., VC+, gcc/make),Link,CVSTrac (bug/feature requests),CMake,CVS Repository (source control),CMake Build Instructions,Documentation,Libraries,Test App,Applications,Scripts,Dart2 (dashboard),Quick Tour of the Web Site,www

22、.cisst.org/resources/software,Development Summary,Tools adequately manage implementation, (unit) testing and maintenance phases of development Automated testing will be hard for physical devices Much documentation is manually created (not enforced by the process) Requirements, risk analysis, (high-level) design, validation User guide, tutorial, quickstart We needed Dart sooner than we expected! gcc is getting pickier! Windows static/shared libraries (dll export),

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1