#include "CopyPose.hpp"
#include "kdl/kinfam_io.hpp"
#include <math.h>
-#include <malloc.h>
#include <string.h>
namespace iTaSC
{
m_maxerror = armlength/2.0;
m_outputControl = (control_output & CTL_ALL);
- int _nc = nBitsOn(m_outputControl);
+ unsigned int _nc = nBitsOn(m_outputControl);
if (!_nc)
return;
// reset the constraint set
void CopyPose::updateState(ConstraintValues* _values, ControlState* _state, unsigned int mask, double timestep)
{
- int id = (mask == CTL_ROTATIONX) ? ID_ROTATIONX : ID_POSITIONX;
+ unsigned int id = (mask == CTL_ROTATIONX) ? ID_ROTATIONX : ID_POSITIONX;
ControlState::ControlValue* _yval;
ConstraintSingleValue* _data;
int i, j, k;