NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
planio.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 
19 #ifndef JSONLOADER_PLANIO_H_
20 #define JSONLOADER_PLANIO_H_
21 
22 #include <jsonloader/plan.h>
23 
24 #include <glog/logging.h>
25 
26 #include <string>
27 #include <vector>
28 
29 namespace Json {
30  class Value;
31 } // end namespace Json
32 
33 namespace jsonloader {
34  Plan LoadPlan(std::string const& data);
35  bool LoadData(std::string const& data, Json::Value *json);
36 
37  // Utilities for writing a plan
38  void WritePlanHeader(std::ofstream & ofs, double vel, double accel, double omega, double alpha,
39  std::string creator);
40  void WriteStation(std::ofstream & ofs, Eigen::VectorXd Pose, double tol, int id);
41  void WriteSegment(std::ofstream & ofs, std::vector<Eigen::VectorXd> const& SegVec,
42  double vel, double accel, double omega, double alpha, int id);
43  void WritePlanFooter(std::ofstream & ofs, std::string const& plan_name, int id);
44  void WritePlanFooter(std::ofstream & ofs, std::string const& plan_name, int id);
45 
46 } // end namespace jsonloader
47 
48 #endif // JSONLOADER_PLANIO_H_
Value
std::pair< std::string, Keywords > Value
Definition: eps_driver_tool.cc:72
plan.h
jsonloader::WriteSegment
void WriteSegment(std::ofstream &ofs, std::vector< Eigen::VectorXd > const &SegVec, double vel, double accel, double omega, double alpha, int id)
Definition: planio.cc:104
jsonloader
Definition: command.h:28
gpio::Value
Value
Definition: GPIO.h:42
Json
Definition: command.h:24
jsonloader::WritePlanFooter
void WritePlanFooter(std::ofstream &ofs, std::string const &plan_name, int id)
Definition: planio.cc:185
jsonloader::WritePlanHeader
void WritePlanHeader(std::ofstream &ofs, double vel, double accel, double omega, double alpha, std::string creator)
Definition: planio.cc:48
jsonloader::WriteStation
void WriteStation(std::ofstream &ofs, Eigen::VectorXd Pose, double tol, int id)
Definition: planio.cc:150
jsonloader::LoadPlan
Plan LoadPlan(std::string const &data)
Definition: planio.cc:28
jsonloader::LoadData
bool LoadData(std::string const &data, Json::Value *json)
Definition: planio.cc:37