1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include "CollisionModel.h"

CollisionModel::CollisionModel()
{<--- Member variable 'CollisionModel::isLeftFootColliding' is not initialized in the constructor.<--- Member variable 'CollisionModel::isRightFootColliding' is not initialized in the constructor.<--- Member variable 'CollisionModel::collision_left_bumper' is not initialized in the constructor.<--- Member variable 'CollisionModel::collision_right_bumper' is not initialized in the constructor.
}

CollisionModel::~CollisionModel()
{

}


void CollisionModel::print(std::ostream &stream) const
{
    stream << "isLeftFootColliding=" << (isLeftFootColliding ? "true" : "false") << std::endl;
    stream << "isRightFootColliding=" << (isRightFootColliding ? "true" : "false") << std::endl;
    stream << "Last computed collision Left: " << lastComputedCollisionLeft.getFrameNumber() << std::endl;
    stream << "Last computed collision Right: " << lastComputedCollisionRight.getFrameNumber() << std::endl;
}