Fixed cpplint.py warnings (#215)

* Fixed cpplint.py [build/include_order] and [build/include_what_you_use] warnings
* Fixed cpplint.py [readability/casting] warnings
* Updated .styleguide format
* Fixed cpplint.py [build/header_guard] warnings
This commit is contained in:
Tyler Veness
2016-09-05 13:55:31 -07:00
committed by Peter Johnson
parent 59ec54887d
commit 05626cfafe
132 changed files with 280 additions and 172 deletions

View File

@@ -7,6 +7,8 @@
#include "external_limit_switch.h"
#include <string>
ExternalLimitSwitch::ExternalLimitSwitch(sdf::ElementPtr sdf) {
sensor = std::dynamic_pointer_cast<sensors::ContactSensor>(
sensors::get_sensor(sdf->Get<std::string>("sensor")));

View File

@@ -7,8 +7,6 @@
#pragma once
#include "switch.h"
#ifdef _WIN32
#include <Winsock2.h>
#endif
@@ -17,6 +15,8 @@
#include <gazebo/gazebo.hh>
#include <gazebo/sensors/sensors.hh>
#include "switch.h"
using namespace gazebo;
class ExternalLimitSwitch : public Switch {

View File

@@ -7,6 +7,8 @@
#include "internal_limit_switch.h"
#include <string>
InternalLimitSwitch::InternalLimitSwitch(physics::ModelPtr model,
sdf::ElementPtr sdf) {
joint = model->GetJoint(sdf->Get<std::string>("joint"));

View File

@@ -7,14 +7,15 @@
#pragma once
#include "switch.h"
#ifdef _WIN32
#include <Winsock2.h>
#endif
#include <gazebo/gazebo.hh>
#include <gazebo/physics/physics.hh>
#include "switch.h"
using namespace gazebo;
class InternalLimitSwitch : public Switch {

View File

@@ -7,17 +7,17 @@
#pragma once
#include "simulation/gz_msgs/msgs.h"
#include "switch.h"
#include "external_limit_switch.h"
#include "internal_limit_switch.h"
#include <string>
#include <gazebo/gazebo.hh>
#include <gazebo/physics/physics.hh>
#include <gazebo/transport/transport.hh>
#include "external_limit_switch.h"
#include "internal_limit_switch.h"
#include "simulation/gz_msgs/msgs.h"
#include "switch.h"
using namespace gazebo;
/**

View File

@@ -9,7 +9,7 @@
class Switch {
public:
virtual ~Switch() {}
virtual ~Switch() = default;
/// \brief Returns true when the switch is triggered.
virtual bool Get() = 0;