createArrow and showArrow implementation without label

This commit is contained in:
ozantonkal
2013-06-27 12:33:19 +03:00
parent c4a07b7531
commit 4a19ff3a7c
8 changed files with 102 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ TEST(Viz_viz3d, accuracy)
int col_red = 0;
v.showCircle("circle1", cv::Point3f(0,0,0), 1.0, temp_viz::Color(0,255,0));
v.showSphere("sphere1", cv::Point3f(0,0,0), 0.5, temp_viz::Color(0,0,255));
v.showArrow("arrow1", cv::Point3f(0,0,0), cv::Point3f(1,1,1), temp_viz::Color(255,0,0));
while(!v.wasStopped())
{
@@ -109,6 +110,7 @@ TEST(Viz_viz3d, accuracy)
// v.showCylinder("cylinder1", cv::Point3f(0,0,0), cv::Point3f(pos_x, 1.0, 1.0), 0.5, 5*pos_x+3, temp_viz::Color(0,255,0));
v.setShapePose("circle1", cloudPosition);
v.setShapePose("sphere1", cloudPosition);
v.setShapePose("arrow1", cloudPosition);
angle_x += 0.1f;
angle_y -= 0.1f;