18 #ifndef MARKER_SHAPES_IMPL_HPP_ 19 #define MARKER_SHAPES_IMPL_HPP_ 26 double x,
double y,
double z,
27 double quat_x,
double quat_y,
double quat_z,
double quat_w,
28 double color_r,
double color_g,
double color_b,
double color_a) : fcl_marker_converter_(fcl_object)
30 this->
init(root_frame, x, y, z, quat_x, quat_y, quat_z, quat_w, color_r, color_g, color_b, color_a);
36 double quat_x,
double quat_y,
double quat_z,
double quat_w,
37 double color_r,
double color_g,
double color_b,
double color_a)
39 this->
init(root_frame, x, y, z, quat_x, quat_y, quat_z, quat_w, color_r, color_g, color_b, color_a);
58 double quat_x,
double quat_y,
double quat_z,
double quat_w,
59 double color_r,
double color_g,
double color_b,
double color_a)
77 marker_.action = visualization_msgs::Marker::ADD;
109 template <
typename T>
117 template <
typename T>
120 fcl::Transform3f x(fcl::Quaternion3f(this->
marker_.pose.orientation.w,
121 this->marker_.pose.orientation.x,
122 this->marker_.pose.orientation.y,
123 this->marker_.pose.orientation.z),
124 fcl::Vec3f(this->marker_.pose.position.x,
125 this->marker_.pose.position.y,
126 this->marker_.pose.position.z));
132 template <
typename T>
135 marker_.pose.position.x = pos.x;
136 marker_.pose.position.y = pos.y;
137 marker_.pose.position.z = pos.z;
138 marker_.pose.orientation = quat;
142 template <
typename T>
visualization_msgs::Marker marker_
geometry_msgs::Pose getMarkerPose() const
void init(const std::string &root_frame, double x, double y, double z, double quat_x, double quat_y, double quat_z, double quat_w, double color_r, double color_g, double color_b, double color_a)
FclMarkerConverter< T > fcl_marker_converter_
fcl::BVHModel< fcl::RSS > BVH_RSS_t
void updatePose(const geometry_msgs::Vector3 &pos, const geometry_msgs::Quaternion &quat)
visualization_msgs::Marker getMarker()
static const std::string g_marker_namespace
std::shared_ptr< BVH_RSS_t > ptr_fcl_bvh_
void setColor(double color_r, double color_g, double color_b, double color_a=1.0)
static uint32_t class_ctr_
geometry_msgs::Pose origin_
fcl::CollisionObject getCollisionObject() const
MarkerShape(const std::string &root_frame, T &fcl_object, const geometry_msgs::Pose &pose, const std_msgs::ColorRGBA &col)
geometry_msgs::Pose getOriginRelToFrame() const