Main Page
Namespaces
Classes
Files
File List
File Members
client
ros_lib
tf
tf.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
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
19
#ifndef ROS_TF_H_
20
#define ROS_TF_H_
21
22
#include "geometry_msgs/TransformStamped.h"
23
24
namespace
tf
25
{
26
27
static
inline
geometry_msgs::Quaternion
createQuaternionFromYaw
(
double
yaw)
28
{
29
geometry_msgs::Quaternion q;
30
q.x = 0;
31
q.y = 0;
32
q.z = sin(yaw * 0.5);
33
q.w = cos(yaw * 0.5);
34
return
q;
35
}
36
37
}
38
39
#endif
40
tf::createQuaternionFromYaw
static geometry_msgs::Quaternion createQuaternionFromYaw(double yaw)
Definition:
tf.h:27
tf
Definition:
tf.h:24
cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Tue Oct 20 2020 03:35:57