{"title":"The application of collision detection software development kit at TPS 39A2 nanoARPES beamline","authors":"Te-Hui Lee, Bo-Yi Chen, Ro-Ya Liu, Cheng-Maw Cheng","doi":"10.1117/12.2679966","DOIUrl":null,"url":null,"abstract":"At TPS 39A2 nanoARPES end station, the small space occupied by focusing devices such as the zone plate, Order Sorting Aperture (OSA), and detectors at the synchrotron end station makes collisions highly probable during adjustment or scanning. To address this issue, we developed a mechanical model using Solidworks to calculate the shortest distances among different objects after movement. Our approach utilizes a self-developed Software Development Kit (SDK) that can load an object description file to describe the spatial location and movement relation among triangle meshes. While the SDK can only calculate distance in static conditions and does not account for moving objects with speed or acceleration, we separated the program code and mechanical structure to ensure code portability. The collision.c and collision.h files are written in pure ANSI C code, and changes to the spatial or motion relation can be made by modifying the description file. The program was developed using National Instruments LabWindows/CVI and uses OpenGL to provide a visual and intuitive representation of the spatial relation between objects.","PeriodicalId":434863,"journal":{"name":"Optical Engineering + Applications","volume":"3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-10-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Optical Engineering + Applications","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1117/12.2679966","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
At TPS 39A2 nanoARPES end station, the small space occupied by focusing devices such as the zone plate, Order Sorting Aperture (OSA), and detectors at the synchrotron end station makes collisions highly probable during adjustment or scanning. To address this issue, we developed a mechanical model using Solidworks to calculate the shortest distances among different objects after movement. Our approach utilizes a self-developed Software Development Kit (SDK) that can load an object description file to describe the spatial location and movement relation among triangle meshes. While the SDK can only calculate distance in static conditions and does not account for moving objects with speed or acceleration, we separated the program code and mechanical structure to ensure code portability. The collision.c and collision.h files are written in pure ANSI C code, and changes to the spatial or motion relation can be made by modifying the description file. The program was developed using National Instruments LabWindows/CVI and uses OpenGL to provide a visual and intuitive representation of the spatial relation between objects.