ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Sematics of ARROW marker parameters changed between fuerte and hydro?

asked 2014-05-19 06:48:51 -0500

Georg gravatar image

updated 2014-05-19 06:50:03 -0500

Dear all,

I am currently porting some code from fuerte to hydro and came across a problem that I do not fully understand.

In fuerte I used the arrow marker, and there the length of the arrow is encoded as scale.z. On hydro, scale.z seems to scale the arrow in all dimensions.

The ROS wiki see here says:

"scale.x is the arrow width, scale.y is the arrow height and scale.z is the arrow length ".

However, if I set scale.x and scale.y to the same value (0.1), I get an upward-oval shaped arrow, which is twice as high as wide!?!?

Does anyone have some insight on this?

Best

Georg

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2014-05-19 08:11:37 -0500

updated 2014-05-19 22:58:50 -0500

Yes, this has changed and we also experienced the strange oval arrows when updating from fuerte. You´ll probably want to just update your code accordingly (should be straightforward in most cases).

/edit: Just looked up what we did:

   // add a movable arrow to the interactive marker
   visualization_msgs::Marker arrow;
   arrow.type = visualization_msgs::Marker::ARROW;
-  arrow.scale.z = 0.5;
+  arrow.scale.x = 0.5;
+  arrow.scale.y = 0.1;
+  arrow.scale.z = 0.1;
+
   arrow.color.r = 0.5;
   arrow.color.g = 0;
@@ -940,7 +943,7 @@
   } else {
     start_marker.type = visualization_msgs::Marker::ARROW;
-    start_marker.scale.x = 0.2;
-    start_marker.scale.y = 0.2;
-    start_marker.scale.z = 0.8;
+    start_marker.scale.x = 0.5;
+    start_marker.scale.y = 0.1;
+    start_marker.scale.z = 0.1;
   }

Looks like the wiki documentation you linked is wrong (at least for current ROS versions) and y and z are scaling the height/width, while x scales the length of the marker.

/edit2: I edited the description in the wiki to be correct:

Identity orientation points it along the +X axis. scale.x is the arrow length, scale.y is the arrow width and scale.z is the arrow height.
edit flag offensive delete link more

Comments

What did you do? Just trial an error to get round arrows? Should we somehow file a bug report?

Georg gravatar image Georg  ( 2014-05-19 22:16:41 -0500 )edit

See edit of original answer.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2014-05-19 22:52:47 -0500 )edit

Many thanks!!!

Georg gravatar image Georg  ( 2014-05-20 09:09:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-05-19 06:48:51 -0500

Seen: 197 times

Last updated: May 19 '14