<commit_before>/*
 * Laser.h
 *
 *  Created on: May 27, 2014
 *      Author: user
 */

#ifndef LASER_H_
#define LASER_H_

#include <math.h>
#include <libplayerc++/playerc++.h>
#include "Point.h"
#include "Configuration.h"
#include "Robot.h"
#include "MathHelper.h"
#include "Map.h"

#include <vector>

using namespace PlayerCc;
using namespace std;

class Robot;
class Map;

class Laser
{

private:
	LaserProxy& _laserProxy;
	Robot& _robot;

	double convertIndexToDegree(int index) const;
	int convertDegreeToIndex(double degree) const;

public:

	Laser(LaserProxy& laserProxy, Robot& robot) :
		_laserProxy(laserProxy), _robot(robot)
	{
	}

	void getObstacles(vector<Point>& obstacles) const;
	void getObstacles(double x, double y, double yaw, vector<Point>& obstacles) const;

	bool canRotate() const;
	bool canMoveForward() const;

	void updateMap(Map& map) const;
	
	double GetRightRank() const;
	double GetLeftRank() const;

	virtual ~Laser()
	{
	}
};

#endif /* LASER_H_ */<commit_msg>Remove empty function<commit_after>/*
 * Laser.h
 *
 *  Created on: May 27, 2014
 *      Author: user
 */

#ifndef LASER_H_
#define LASER_H_

#include <math.h>
#include <libplayerc++/playerc++.h>
#include "Point.h"
#include "Configuration.h"
#include "Robot.h"
#include "MathHelper.h"
#include "Map.h"

#include <vector>

using namespace PlayerCc;
using namespace std;

class Robot;
class Map;

class Laser
{

private:
	LaserProxy& _laserProxy;
	Robot& _robot;

	double convertIndexToDegree(int index) const;
	int convertDegreeToIndex(double degree) const;

public:

	Laser(LaserProxy& laserProxy, Robot& robot) :
		_laserProxy(laserProxy), _robot(robot)
	{
	}

	void getObstacles(vector<Point>& obstacles) const;
	void getObstacles(double x, double y, double yaw, vector<Point>& obstacles) const;

	bool canRotate() const;
	bool canMoveForward() const;
	
	
	double GetRightRank() const;
	double GetLeftRank() const;

	virtual ~Laser()
	{
	}
};

#endif /* LASER_H_ */
{'fraction_non_alphanumeric': 0.12665985699693566, 'fraction_numerical': 0.006128702757916241, 'mean_word_length': 4.847761194029851, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1123705', 'n_tokens_mistral': 774, 'n_tokens_neox': 731, 'n_words': 188}