#ifndef _SIM_DIGITAL_INPUT_H #define _SIM_DIGITAL_INPUT_H #include "simulation/msgs/msgs.h" #include using namespace gazebo; class SimDigitalInput { public: SimDigitalInput(std::string topic); /** * @return The value of the potentiometer. */ bool Get(); private: bool value; transport::SubscriberPtr sub; void callback(const msgs::ConstBoolPtr &msg); }; #endif