Add preliminary GRPC server for PyBullet and BulletRobotics.
Will add GRPC client and PyBullet GRPC server plugin. Will cover most/all SharedMemoryCommand/SharedMemoryStatus messages. Run the server, then test using the pybullet_client.py
This commit is contained in:
17
examples/SharedMemory/grpc/ConvertGRPCBullet.h
Normal file
17
examples/SharedMemory/grpc/ConvertGRPCBullet.h
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
#ifndef BT_CONVERT_GRPC_BULLET_H
|
||||
#define BT_CONVERT_GRPC_BULLET_H
|
||||
|
||||
#include "../PhysicsClientC_API.h"
|
||||
|
||||
namespace pybullet_grpc
|
||||
{
|
||||
class PyBulletCommand;
|
||||
class PyBulletStatus;
|
||||
};
|
||||
|
||||
struct SharedMemoryCommand* convertGRPCAndSubmitCommand(pybullet_grpc::PyBulletCommand& grpcCommand, struct SharedMemoryCommand& cmd);
|
||||
|
||||
bool convertStatusToGRPC(const struct SharedMemoryStatus& serverStatus, char* bufferServerToClient, int bufferSizeInBytes, pybullet_grpc::PyBulletStatus& grpcReply);
|
||||
|
||||
#endif //BT_CONVERT_GRPC_BULLET_H
|
||||
Reference in New Issue
Block a user