Program Listing for File twist.hpp

Return to documentation for file (cosm/kin/twist.hpp)

#pragma once

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "rcppsw/math/radians.hpp"
#include "rcppsw/math/vector3.hpp"

#include "cosm/cosm.hpp"

/*******************************************************************************
 * Namespaces/Decls
 ******************************************************************************/
namespace cosm::kin {

/*******************************************************************************
 * Struct Definitions
 ******************************************************************************/
struct twist {
  rmath::vector3d linear{};
  rmath::vector3d angular{};

  twist& operator+=(const twist &rhs) {
    this->linear += rhs.linear;
    this->angular += rhs.angular;

    return *this;
  }

};

} /* namespace cosm::kin */