waypoint_markers.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #pragma once
19 
20 #include <string>
21 #include <sdf/sdf.hh>
22 #include <gazebo/gazebo.hh>
23 #include <ignition/math/Vector3.hh>
24 
25 #if GAZEBO_MAJOR_VERSION >= 8
26  #include <ignition/msgs.hh>
27  #include <ignition/transport.hh>
28 #endif
29 
47 {
50  public: explicit WaypointMarkers(std::string _namespace);
51 
54  public: void Load(sdf::ElementPtr _sdf);
55 
58  public: bool IsAvailable();
59 
67  public: bool DrawMarker(int _marker_id, double _x, double _y,
68  double _yaw, std::string _text = "");
69 
71  private: std::string ns;
72 
74  private: std::string material;
75 
77  private: ignition::math::Vector3d scaling;
78 
80  private: double height;
81 
82 #if GAZEBO_MAJOR_VERSION >= 8
83  ignition::transport::Node node;
85 #endif
86 };
bool IsAvailable()
Returns if markers are available for current system.
std::string material
Name of Gazebo material for marker.
WaypointMarkers(std::string _namespace)
Constructor.
double height
Height of marker above water.
void Load(sdf::ElementPtr _sdf)
Load marker parameters from SDF.
This class is used to display waypoint markers. Cylindrical Gazebo markers are drawn with text on top...
std::string ns
Namespace for Gazebo markers.
bool DrawMarker(int _marker_id, double _x, double _y, double _yaw, std::string _text="")
Draw waypoint marker in Gazebo.
ignition::math::Vector3d scaling
Scaling factor for cylinder marker.


vrx_gazebo
Author(s): Brian Bingham , Carlos Aguero
autogenerated on Thu May 7 2020 03:54:56