PickNikRobotics / rviz_visual_tools

C++ API wrapper for displaying shapes and meshes in Rviz
754 stars 242 forks source link

specifying arrow direction #161

Open roboticsai opened 4 years ago

roboticsai commented 4 years ago
Eigen::Isometry3d pose1 = Eigen::Isometry3d::Identity();
                            pose1.translation() = p0;
                            visual_tools_->publishArrow(pose1, rvt::GREEN);
                            visual_tools_->trigger();

How do i specify the direction of arrow in this code?

sea-bass commented 1 year ago

RViz marker arrows will always face in the +X direction.

You can change pose1.rotation to whatever quaternion gets you the direction you want!