AGXDynamics
2.31.1.0
PythonSimulationControlArguments.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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_PYTHON_SIMULATION_CONTROL_ARGUMENTS_H
18
#define AGXMEX_PYTHON_SIMULATION_CONTROL_ARGUMENTS_H
19
20
#include <agx/config/AGX_USE_PYTHON.h>
21
#include <agx/config/AGX_USE_AGXMEX.h>
22
#if AGX_USE_PYTHON() && AGX_USE_AGXMEX()
23
24
#include <
agxMex/export.h
>
25
#include <
agx/String.h
>
26
#include <
agx/Referenced.h
>
27
#include <
agxSDK/SimulationControl.h
>
28
29
namespace
agxMex
30
{
31
32
33
AGX_DECLARE_POINTER_TYPES
(PythonControlArgument);
35
class
AGXMEX_EXPORT
PythonControlArgument :
public
agxSDK::SimulationControlArgument
36
{
37
38
public
:
39
PythonControlArgument(
size_t
numInput,
size_t
numOutput);
40
41
virtual
bool
input(
const
agxSDK::Simulation
*
/*sim*/
,
const
agx::RealVector
*
/*input*/
)
const
{
return
false
; }
42
virtual
bool
output(
const
agxSDK::Simulation
*
/*sim*/
,
const
agx::RealVector
*
/*output*/
)
const
{
return
false
; }
43
44
protected
:
45
PythonControlArgument(
const
PythonControlArgument&) =
delete
;
46
47
virtual
bool
applyInput(
const
agxSDK::Simulation
* simulation,
const
agx::RealVector
& inputData)
const override
;
48
virtual
bool
obtainOutput(
const
agxSDK::Simulation
* simulation,
const
agx::RealVector
& outputData)
const override
;
49
50
private
:
51
52
};
53
54
}
55
56
#endif // AGX_USE_PYTHON
57
58
#endif // AGXMEX_PYTHON_SIMULATION_CONTROL_ARGUMENTS_H
SimulationControl.h
agxMex
Definition:
LuaSimulationControlArguments.h:25
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
AGXMEX_EXPORT
#define AGXMEX_EXPORT
Definition:
agxMex/export.h:45
agx::VectorPOD< Real >
Referenced.h
agxSDK::Simulation
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition:
Simulation.h:121
agxSDK::SimulationControlArgument
Base class for input/output arguments.
Definition:
SimulationControl.h:44
export.h
String.h
include
agxMex
PythonSimulationControlArguments.h
Generated on Thu Jan 13 2022 19:49:36 for AGXDynamics by
1.8.13