transformable_box.cpp
Go to the documentation of this file.
00001 #include <jsk_interactive_marker/transformable_box.h>
00002 
00003 namespace jsk_interactive_marker{
00004   TransformableBox::TransformableBox( float length , float r, float g, float b, float a, std::string frame, std::string name, std::string description){
00005     box_x_ = box_y_ = box_z_ = length;
00006 
00007     box_r_ = r;
00008     box_g_ = g;
00009     box_b_ = b;
00010     box_a_ = a;
00011     marker_.type = visualization_msgs::Marker::CUBE;
00012 
00013     frame_id_ = frame;
00014     name_ = name;
00015     description_ = description;
00016   }
00017 
00018   TransformableBox::TransformableBox( float x, float y, float z , float r, float g, float b, float a, std::string frame, std::string name, std::string description){
00019     box_x_ = x;
00020     box_y_ = y;
00021     box_z_ = z;
00022     box_r_ = r;
00023     box_g_ = g;
00024     box_b_ = b;
00025     box_a_ = a;
00026     marker_.type = visualization_msgs::Marker::CUBE;
00027 
00028     frame_id_ = frame;
00029     name_ = name;
00030     description_ = description;
00031   }
00032 
00033   visualization_msgs::Marker TransformableBox::getVisualizationMsgMarker(){
00034     marker_.scale.x = box_x_;
00035     marker_.scale.y = box_y_;
00036     marker_.scale.z = box_z_;
00037     marker_.color.r = box_r_;
00038     marker_.color.g = box_g_;
00039     marker_.color.b = box_b_;
00040     marker_.color.a = box_a_;
00041     return marker_;
00042   }
00043 }


jsk_interactive_marker
Author(s): furuta
autogenerated on Mon Oct 6 2014 01:19:15