00001 /* 00002 * Stanford Whole-Body Control Framework http://stanford-wbc.sourceforge.net/ 00003 * 00004 * Copyright (C) 2010 The Board of Trustees of The Leland Stanford Junior University. All rights reserved. 00005 * 00006 * This program is free software: you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public License 00008 * as published by the Free Software Foundation, either version 3 of 00009 * the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, but 00012 * WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this program. If not, see 00018 * <http://www.gnu.org/licenses/> 00019 */ 00020 00021 #ifndef JSPACE_ROBOT_API_HPP 00022 #define JSPACE_ROBOT_API_HPP 00023 00024 #include <jspace/State.hpp> 00025 #include <jspace/Status.hpp> 00026 00027 00028 namespace jspace { 00029 00030 00036 class RobotAPI 00037 { 00038 public: 00039 virtual ~RobotAPI() {} 00040 00041 virtual Status readState(State & state) = 0; 00042 00043 virtual Status writeCommand(Vector const & command) = 0; 00044 00045 virtual void shutdown() = 0; 00046 }; 00047 00048 } 00049 00050 #endif // JSPACE_ROBOT_API_HPP