Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
Nipscan.h
Go to the documentation of this file.
1#pragma once
3#include <ktm/global.h>
4#include <math/Types.h>
5#include <misc/gen/TSet.h>
6
7namespace sf
8{
9
10// Returns true on success of translating a matrix value to manipulator coordinates.
11// This function should be part of a scan mode but will be needed else where too.
13{
14 // Use the second solution for A and B axis if one is there.
16 // Toggle the second solution when the surface position is in line with the A-axis position.
18 // Do not calculate the A-axis from the surface.
20};
21//
22// Bitmap set of translation options.
23typedef TSet<ETranslateOption> TTranslateOptions;
24//
26 const Matrix44& surface,// Matrix describing the surface.
27 const ToolInformation& tool,// Description of the tool vector and beam angle.
28 double beamlen,// Length of the beam when it leaves the tool.
29 double& x,// Linear axis return value.
30 double& y,// Linear axis return value.
31 double& z,// Linear axis return value.
32 double& a,// Radial axis return value.
33 double& b,// Radial axis return value.
34 TTranslateOptions options = {}// Options for translation.
35);
36
37}// namespace sf
Holds the needed information on a tool to make calculations.
Definition ToolInformation.h:13
#define _KTM_FUNC
Definition ktm/global.h:34
Definition Application.h:10
ETranslateOption
Definition Nipscan.h:13
@ toSECSOLUTION
Definition Nipscan.h:15
@ toNOSURFACECALC
Definition Nipscan.h:19
@ toTOGGLESECSOL
Definition Nipscan.h:17
TSet< ETranslateOption > TTranslateOptions
Definition Nipscan.h:23
bool _KTM_FUNC TranslateToNipscanCoords(const Matrix44 &surface, const ToolInformation &tool, double beamlen, double &x, double &y, double &z, double &a, double &b, TTranslateOptions options={})