optima 0.0.4

An easy to set up and easy optimization and planning toolbox, particularly for robotics.
Documentation
use serde::{Serialize, Deserialize};

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct RobotSetWrapper<T> {
    object: T,
    robot_idx_in_robot_set: usize
}
impl <T> RobotSetWrapper<T> {
    pub fn new(object: T, robot_idx_in_robot_set: usize) -> Self {
        Self {
            object,
            robot_idx_in_robot_set
        }
    }
    pub fn object(&self) -> &T {
        &self.object
    }
    pub fn object_mut(&mut self) -> &mut T {
        &mut self.object
    }
    pub fn robot_idx_in_robot_set(&self) -> usize {
        self.robot_idx_in_robot_set
    }
}