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

specifying arrow direction

asked 2020-06-16 05:34:20 -0600

dinesh gravatar image
 Eigen::Isometry3d pose1 = Eigen::Isometry3d::Identity();
                            pose1.translation() = p0;
                            visual_tools_->publishArrow(pose1, rvt::GREEN);
                            visual_tools_->trigger();

I am using rviz_visulization tool to pulibish some markes like plane, line list in rviz. Here how do i specify the direction of arrow in above code i.e in ros_visual_tools library?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-06-16 09:27:01 -0600

mgruhler gravatar image

updated 2020-06-16 09:27:21 -0600

You only set the translation, but not the rotation (or rather, you set it to identity = no rotation).

Check the example code on how to set the rotation of the pose...

edit flag offensive delete link more

Comments

Is their also, built in function in rviz_visul tool to publish point or points with color? i tired publishing the rviz points marker from publishMarker but it is also showing the simlar problem i saw when using ros rviz marker i.e color is not comming. and also how to specify the arrow with two points?

dinesh gravatar image dinesh  ( 2020-06-16 12:17:27 -0600 )edit

@dinesh, those are additional questions. Has the answer helped you? If yes, please mark as such and follow up with another question...

mgruhler gravatar image mgruhler  ( 2020-06-16 13:34:57 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2020-06-16 05:34:20 -0600

Seen: 330 times

Last updated: Jun 16 '20