AGX Dynamics  2.35.0.1
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>
23 
24 
25 namespace agxMex {
26 
30  {
31  public:
33  const agx::String& functionName,
34  size_t numValues);
35 
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 
45  };
46 
47 
51  public:
53  const agx::String& functionName,
54  size_t numValues);
55 
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 
66  };
67 
68 }
69 
70 #endif
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
#define AGXMEX_EXPORT
Definition: agxMex/export.h:45
Class handling input arguments from lua.
agx::String getFunctionName() const
virtual bool applyInput(const agxSDK::Simulation *simulation, const agx::RealVector &input) const
virtual bool obtainOutput(const agxSDK::Simulation *simulation, const agx::RealVector &output) const
LuaInputArgument(const agx::String &functionName, size_t numValues)
Class handling output arguments from lua.
LuaOutputArgument(const agx::String &functionName, size_t numValues)
virtual bool obtainOutput(const agxSDK::Simulation *simulation, const agx::RealVector &output) const
virtual bool applyInput(const agxSDK::Simulation *simulation, const agx::RealVector &input) const
agx::String getFunctionName() const
Base class for input/output arguments.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Definition: Simulation.h:127
This namespace contains functionality for using AGX with Matlab/Simulink.