mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 13:50:04 +00:00
a4f1e34899
add RobotSimulator, a C++ API similar to pybullet. (work-in-progress, only part of API implemeted)
28 lines
865 B
C++
28 lines
865 B
C++
#ifndef PHYSICS_COMMAND_PROCESSOR_INTERFACE_H
|
|
#define PHYSICS_COMMAND_PROCESSOR_INTERFACE_H
|
|
|
|
class PhysicsCommandProcessorInterface
|
|
{
|
|
|
|
public:
|
|
virtual ~PhysicsCommandProcessorInterface() {}
|
|
|
|
virtual bool connect()=0;
|
|
|
|
virtual void disconnect() = 0;
|
|
|
|
virtual bool isConnected() const = 0;
|
|
|
|
virtual bool processCommand(const struct SharedMemoryCommand& clientCmd, struct SharedMemoryStatus& serverStatusOut, char* bufferServerToClient, int bufferSizeInBytes) = 0;
|
|
|
|
virtual bool receiveStatus(struct SharedMemoryStatus& serverStatusOut, char* bufferServerToClient, int bufferSizeInBytes) = 0;
|
|
|
|
virtual void renderScene() = 0;
|
|
virtual void physicsDebugDraw(int debugDrawFlags) = 0;
|
|
virtual void setGuiHelper(struct GUIHelperInterface* guiHelper) = 0;
|
|
virtual void setTimeOut(double timeOutInSeconds) = 0;
|
|
|
|
};
|
|
|
|
#endif //PHYSICS_COMMAND_PROCESSOR_INTERFACE_H
|