pub struct Joint {
pub joint_id: Option<String>,
pub name: Option<String>,
pub joint_type: Option<JointType>,
pub position: Option<f64>,
pub commanded_position: Option<f64>,
pub velocity: Option<f64>,
pub effort: Option<f64>,
pub temperature_c: Option<f64>,
pub min_position: Option<f64>,
pub max_position: Option<f64>,
pub status: Option<MotorStatus>,
pub at_limit: Option<bool>,
}Expand description
Joint information (for arms/manipulators).
Fields§
§joint_id: Option<String>Joint ID
name: Option<String>Joint name (e.g., “shoulder”, “elbow”, “wrist”)
joint_type: Option<JointType>Joint type (revolute, prismatic)
position: Option<f64>Current position (degrees for revolute, meters for prismatic)
commanded_position: Option<f64>Commanded position
velocity: Option<f64>Current velocity (deg/s or m/s)
effort: Option<f64>Current effort/torque
temperature_c: Option<f64>Temperature in Celsius
min_position: Option<f64>Minimum position limit
max_position: Option<f64>Maximum position limit
status: Option<MotorStatus>Motor status
at_limit: Option<bool>Whether at limit
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Joint
impl<'de> Deserialize<'de> for Joint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Joint
impl RefUnwindSafe for Joint
impl Send for Joint
impl Sync for Joint
impl Unpin for Joint
impl UnwindSafe for Joint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more