This commit is contained in:
2025-09-24 10:53:28 +08:00
commit f8e4df77fb
856 changed files with 140098 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#ifndef __UT_ROBOT_B2_BACK_VIDEO_API_HPP__
#define __UT_ROBOT_B2_BACK_VIDEO_API_HPP__
#include <unitree/common/json/jsonize.hpp>
namespace unitree
{
namespace robot
{
namespace b2
{
/*service name*/
const std::string ROBOT_BACK_VIDEO_SERVICE_NAME = "back_videohub";
/*api version*/
const std::string ROBOT_BACK_VIDEO_API_VERSION = "1.0.0.0";
/*api id*/
const int32_t ROBOT_BACK_VIDEO_API_ID_GETIMAGESAMPLE = 1001;
}
}
}
#endif //__UT_ROBOT_B2_BACK_VIDEO_API_HPP__

View File

@@ -0,0 +1,34 @@
#ifndef __UT_ROBOT_B2_BACK_VIDEO_CLIENT_HPP__
#define __UT_ROBOT_B2_BACK_VIDEO_CLIENT_HPP__
#include <unitree/robot/client/client.hpp>
namespace unitree
{
namespace robot
{
namespace b2
{
/*
* BackVideoClient
*/
class BackVideoClient : public Client
{
public:
explicit BackVideoClient();
~BackVideoClient();
void Init();
/*
* @brief GetImageSample
* @api: 1001
*/
int32_t GetImageSample(std::vector<uint8_t>&);
};
}
}
}
#endif//__UT_ROBOT_B2_BACK_VIDEO_CLIENT_HPP__

View File

@@ -0,0 +1,17 @@
#ifndef __UT_ROBOT_B2_BACK_VIDEO_ERROR_HPP__
#define __UT_ROBOT_B2_BACK_VIDEO_ERROR_HPP__
#include <unitree/common/decl.hpp>
namespace unitree
{
namespace robot
{
namespace b2
{
UT_DECL_ERR(UT_ROBOT_BACK_VIDEO_ERR_COMM, 100, "Invalid parameter")
}
}
}
#endif//__UT_ROBOT_B2_BACK_VIDEO_ERROR_HPP__