Hi! I want to publish a poseArray to rviz. For understanding I implement a simple pose msg, which I want to send to rviz now with:
geometry_msgs::Pose_ > test;
test.position.x = 2;
test.position.y = 2;
test.position.z = 0;
test.orientation = tf::createQuaternionMsgFromYaw(3.14/2);
geometry_msgs::PoseStamped pose;
pose.header.frame_id="/world";
pose.header.stamp = ros::Time::now();
pose.pose = test;
poses_pub->publish(pose);
If I set the shape to "axis", the result is fine. But if I set it to "arrow", the arrow points in (-z) direction. In my opinion, it should point in x-y plane (orientation in msg). Setting the quaternion by hand leads to the same result. A message with an "arrow" marker instead of the pose works fine.
I have checked out the newest geometry_msgs and rviz trunk.
Originally posted by minne on ROS Answers with karma: 13 on 2011-07-19
Post score: 1