AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
PythonSimulationControlArguments.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx 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>
28
29namespace 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
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXMEX_EXPORT
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:126
This namespace contains functionality for using AGX with Matlab/Simulink.