FancySafeBot 0.0.1
A safe robotics library
Loading...
Searching...
No Matches
fsb_urdf_joint.h
1
2#pragma once
3
4#include "fsb_motion.h"
5#include "fsb_types.h"
6#include "fsb_urdf_error.h"
7#include "fsb_joint.h"
8
9#include <string>
10#include <tinyxml2.h>
11
12namespace fsb::urdf
13{
14
21{
23 Real lower_position = 0.0;
24
26 Real upper_position = 0.0;
27
29 Real max_velocity = 0.0;
30
32 bool set = false;
33};
34
39{
41 std::string joint_name;
42
45
47 std::string parent_name;
48
50 std::string child_name;
51
54
57
59 bool reversed = false;
60};
61
82urdf_parse_joint(const std::string& fname, const tinyxml2::XMLElement* joint_xml, UrdfError& err);
83
88} // namespace fsb::urdf
Urdf parsing error.
Definition fsb_urdf_error.h:77
JointType
Joint type.
Definition fsb_joint.h:28
@ FIXED
Fixed joint.
UrdfJoint urdf_parse_joint(const std::string &fname, const tinyxml2::XMLElement *joint_xml, UrdfError &err)
Parse a URDF joint element.
Definition fsb_urdf_joint.cpp:286
Coordinate transform.
Definition fsb_motion.h:22
Definition fsb_urdf_joint.h:21
Real lower_position
Definition fsb_urdf_joint.h:23
Real max_velocity
Definition fsb_urdf_joint.h:29
Real upper_position
Definition fsb_urdf_joint.h:26
bool set
Definition fsb_urdf_joint.h:32
Structure representing a URDF joint.
Definition fsb_urdf_joint.h:39
JointType joint_type
Definition fsb_urdf_joint.h:44
UrdfJointLimits limits
Definition fsb_urdf_joint.h:56
bool reversed
reversed direction of the joint axis
Definition fsb_urdf_joint.h:59
std::string child_name
Definition fsb_urdf_joint.h:50
std::string parent_name
Definition fsb_urdf_joint.h:47
Transform parent_child_transform
Definition fsb_urdf_joint.h:53
std::string joint_name
Definition fsb_urdf_joint.h:41