00001 #include <jsk_interactive_marker/transformable_cylinder.h> 00002 00003 namespace jsk_interactive_marker{ 00004 TransformableCylinder::TransformableCylinder( float radius, float z, float r, float g, float b, float a, std::string frame, std::string name, std::string description){ 00005 cylinder_radius_ = radius; 00006 cylinder_z_ = z; 00007 cylinder_r_ = r; 00008 cylinder_g_ = g; 00009 cylinder_b_ = b; 00010 cylinder_a_ = a; 00011 marker_.type = visualization_msgs::Marker::CYLINDER; 00012 00013 frame_id_ = frame; 00014 name_ = name; 00015 description_ = description; 00016 } 00017 00018 visualization_msgs::Marker TransformableCylinder::getVisualizationMsgMarker(){ 00019 marker_.scale.x = cylinder_radius_; 00020 marker_.scale.y = cylinder_radius_; 00021 marker_.scale.z = cylinder_z_; 00022 marker_.color.r = cylinder_r_; 00023 marker_.color.g = cylinder_g_; 00024 marker_.color.b = cylinder_b_; 00025 marker_.color.a = cylinder_a_; 00026 return marker_; 00027 } 00028 }