18#ifndef AGX_REMOTESOLVER_H
19#define AGX_REMOTESOLVER_H
21#include <agx/config/AGX_USE_WEBSOCKETS.h>
28#if AGX_USE_WEBSOCKETS()
32namespace agxSDK {
class Simulation; }
43 RemoteSolver(UInt16 tcpSocketPort = 1906, UInt16 webSocketPort = 1907);
48 agx::UInt16 getWebPort()
const {
return m_webPort; }
49 agx::UInt16 getTcpPort()
const {
return m_tcpPort; }
54 virtual ~RemoteSolver();
61 void clientConnected(agxNet::WebSocket* client);
63 void clientDisconnected(agxNet::WebSocket* client);
65 void messageReceived(
agx::UInt8* payload,
size_t size);
68 void someClientDisconnected();
69 bool writeReadCycle(agxData::Frame* frame);
82 agxNet::WebSocketServerRef m_webSocketServer;
83 agxNet::WebSocketRef m_webSocketClient;
87 agxData::FrameRef m_solverResult;
#define AGX_DECLARE_POINTER_TYPES(type)
#define AGXPHYSICS_EXPORT
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void AGXPHYSICS_EXPORT init()
Initialize AGX Dynamics API including thread resources and must be executed before using the AGX API.