cu-ros2-bridge 1.0.1

Copper bridge for ROS 2 messaging over Zenoh transport.
Documentation
1
2
3
4
5
6
7
8
9
10
use cu29::CuError;
use zenoh::Error as ZenohError;

pub fn cu_error(msg: &str, error: ZenohError) -> CuError {
    CuError::from(msg).add_cause(&error.to_string())
}

pub fn cu_error_map(msg: &str) -> impl FnOnce(ZenohError) -> CuError + '_ {
    |e| cu_error(msg, e)
}