AGXDynamics
2.35.0.2
LuaSimulationControlArguments.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2022. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGXMEX_LUA_SIMULATION_CONTROL_ARGUMENTS_H
18
#define AGXMEX_LUA_SIMULATION_CONTROL_ARGUMENTS_H
19
20
#include <
agxMex/export.h
>
21
#include <
agx/String.h
>
22
#include <
agxSDK/SimulationControl.h
>
23
24
25
namespace
agxMex
{
26
27
AGX_DECLARE_POINTER_TYPES
(
LuaInputArgument
);
29
class
AGXMEX_EXPORT
LuaInputArgument
:
public
agxSDK::SimulationControlArgument
30
{
31
public
:
32
LuaInputArgument
(
33
const
agx::String
& functionName,
34
size_t
numValues);
35
36
agx::String
getFunctionName()
const
;
37
38
virtual
bool
applyInput(
const
agxSDK::Simulation
* simulation,
const
agx::RealVector
& input)
const
;
39
40
protected
:
41
// Just to please the compiler, should never reach this
42
virtual
bool
obtainOutput(
const
agxSDK::Simulation
* simulation,
const
agx::RealVector
& output)
const
;
43
44
agx::String
m_functionName
;
45
};
46
47
48
AGX_DECLARE_POINTER_TYPES
(
LuaOutputArgument
);
50
class
AGXMEX_EXPORT
LuaOutputArgument
:
public
agxSDK::SimulationControlArgument
{
51
public
:
52
LuaOutputArgument
(
53
const
agx::String
& functionName,
54
size_t
numValues);
55
56
agx::String
getFunctionName()
const
;
57
58
virtual
bool
obtainOutput(
const
agxSDK::Simulation
* simulation,
const
agx::RealVector
& output)
const
;
59
60
protected
:
61
62
// Just to please the compiler, should never reach this
63
virtual
bool
applyInput(
const
agxSDK::Simulation
* simulation,
const
agx::RealVector
& input)
const
;
64
65
agx::String
m_functionName
;
66
};
67
68
}
69
70
#endif
agxMex
This namespace contains functionality for using AGX with Matlab/Simulink.
agx::VectorPOD< Real >
export.h
agxSDK::SimulationControlArgument
Base class for input/output arguments.
Definition:
SimulationControl.h:44
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition:
Simulation.h:126
agxMex::LuaInputArgument::m_functionName
agx::String m_functionName
Definition:
LuaSimulationControlArguments.h:44
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agxMex::LuaOutputArgument::m_functionName
agx::String m_functionName
Definition:
LuaSimulationControlArguments.h:65
SimulationControl.h
String.h
agx::AgXString< std::string >
agxMex::LuaOutputArgument
Class handling output arguments from lua.
Definition:
LuaSimulationControlArguments.h:50
AGXMEX_EXPORT
#define AGXMEX_EXPORT
Definition:
agxMex/export.h:45
agxMex::LuaInputArgument
Class handling input arguments from lua.
Definition:
LuaSimulationControlArguments.h:29
include
agxMex
LuaSimulationControlArguments.h
Generated on Mon Jan 30 2023 15:44:18 for AGXDynamics by
1.8.17