Skip to content

Commit

Permalink
📖 文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxi-scut committed Nov 22, 2024
1 parent daf8bb0 commit a70ef59
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 8 additions & 0 deletions doc/tools/pyrmvl_fns.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ rm::PipeClient PipeClient name [[con]]
rm::PipeClient read "" res,data
rm::PipeClient write data res

###################################### ml ######################################
rm::OnnxNet OnnxNet model_path,prov [[con]]
rm::OnnxNet printEnvInfo "" None
rm::OnnxNet printModelInfo "" None
rm::OnnxNet inference images,preop,postop res
rm::ClassificationNet ClassificationNet model_path,prov [[con]]
rm::ClassificationNet cast res idx,conf

################################## algorithm ###################################
rm::Polynomial Polynomial coeffs [[con]]
rm::Polynomial [[call]] x fval
Expand Down
12 changes: 6 additions & 6 deletions modules/core/include/rmvl/core/io.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ struct RMVL_EXPORTS SerialPortMode
//! 串行接口通信库
class RMVL_EXPORTS SerialPort
{
RMVL_IMPL;

public:
/**
* @brief 构造新 SerialPort 对象
Expand Down Expand Up @@ -258,8 +260,6 @@ class RMVL_EXPORTS SerialPort

//! 读取数据(基于文件描述符)
long int fdread(void *data, size_t len);

RMVL_IMPL;
};

//////////////////////////////////// 进程间通信 ////////////////////////////////////
Expand Down Expand Up @@ -301,7 +301,7 @@ class RMVL_EXPORTS_W PipeServer
}
//! @endcond

inline bool operator>>(std::string &data) { return read(data); }
inline PipeServer &operator>>(std::string &data) { return (read(data), *this); }

/**
* @brief 向管道写入数据
Expand All @@ -311,7 +311,7 @@ class RMVL_EXPORTS_W PipeServer
*/
RMVL_W bool write(std::string_view data);

inline bool operator<<(std::string_view data) { return write(data); }
inline PipeServer &operator<<(std::string_view data) { return (write(data), *this); }
};

//! 命名管道客户端
Expand Down Expand Up @@ -348,7 +348,7 @@ class RMVL_EXPORTS_W PipeClient
}
//! @endcond

inline bool operator>>(std::string &data) { return read(data); }
inline PipeClient &operator>>(std::string &data) { return (read(data), *this); }

/**
* @brief 向管道写入数据
Expand All @@ -358,7 +358,7 @@ class RMVL_EXPORTS_W PipeClient
*/
RMVL_W bool write(std::string_view data);

inline bool operator<<(std::string_view data) { return write(data); }
inline PipeClient &operator<<(std::string_view data) { return (write(data), *this); }
};

//! @} core_io
Expand Down
2 changes: 1 addition & 1 deletion modules/opcua/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(BUILD_PYTHON)
list(APPEND opcua_inc rmvl/opcua/${m}.hpp)
endforeach()
rmvl_generate_python(opcua
FILES ${opcua_inc}
FILES ${opcua_inc} rmvlpara/opcua.hpp
DEPENDS opcua
)
endif()
Expand Down

0 comments on commit a70ef59

Please sign in to comment.