0
$\begingroup$

Rosanswers logo

I am working on driverless cars for motion planning.The car environment was already built (like odometry,car pose..)and my part was building planning algorithm.I got some trajectories,paths,goal position as markers from planning part..first I am running launch file related to car environment and then running the launch file related to planning with rviz now so that I can visualize everything together...now the problem was that I am getting all markers in rviz (status ok in display panel) but I couldnt able to visualize the markers generated by planner alone....but it is getting published while doing rostopic echo!! What are possible reasons for markers to be not visible in rviz in this case?

Any help is much appreciated!

P.S: I set alpha to 1 in all markers,and all the markers in both car environment and planning part are having same marker header...


Originally posted by vignesh on ROS Answers with karma: 101 on 2016-03-04

Post score: 1

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Here is a list of things that, if not done, could make the marker not show up as expected:

  • Set the scale of the marker. By default, the scale is (0,0,0), which will make the marker infinitesimal and therefore invisible.
  • Make sure the transparency is set. By default, the 'a' field of the marker color is 0, which will make the marker completely transparent.
  • Set the orientation of the marker. By default, all quaternion parameters are zero, which is an invalid quaternion. Set w to 1 to initialize the orientation.
  • Update the time stamp of the marker when you update its properties.
  • Make sure the frame ID of the marker exists in the TF tree, or is the same frame as the fixed frame in Rviz.
  • If publishing a marker array, make sure the 'id' field of each array element is unique. Otherwise, only the marker that was added last will appear.

If all of the above points are verified, then do a sanity check on the position of the marker. The simplest way is to 'rostopic info' the marker topic. Make sure the coordinates make sense.

I hope this helps!


Originally posted by robustify with karma: 956 on 2016-03-04

This answer was ACCEPTED on the original site

Post score: 9


Original comments

Comment by fvd on 2017-07-07:
Other potential reasons:

  • The "Marker" display is not added to the rviz view yet (Click "Add" and insert it)
  • The "Marker" topic that the rviz GUI subscribes to by default does not have a slash. Select the correct topic (with slash) from the list to make it work. (Goddamn)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.