Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📖 文档更新 #196

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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