Ask Your Question
0

Is there a way to define base link in urdf file

asked 2018-11-28 14:42:42 -0600

OpenR2 gravatar image

Is there a way to keep the name of the base link in the URDF file that name that is defined in the originating CAD system but make RVIZ aware that it is the baselink to load?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-11-28 15:17:00 -0600

gvdhoorn gravatar image

updated 2018-11-29 02:38:09 -0600

You probably want to change the configured value for the Fixed Frame and set it to one of the frames in your TF tree.


Is there away to do that from the command line at start?

have you checked the RViz help?

rviz command line options:
  -h [ --help ]               Produce this help message
  -s [ --splash-screen ] arg  A custom splash-screen image to display
  --help-file arg             A custom html file to show as the help screen
  -d [ --display-config ] arg A display config file (.rviz) to load
  -f [ --fixed-frame ] arg    Set the fixed frame
  -l [ --ogre-log ]           Enable the Ogre.log file (output in cwd) and 
                              console output.
  --in-mc-wrapper             Signal that this is running inside a 
                              master-chooser wrapper
  --opengl arg                Force OpenGL version (use '--opengl 210' for 
                              OpenGL 2.1 compatibility mode)
  --disable-anti-aliasing     Prevent rviz from trying to use anti-aliasing 
                              when rendering.
  --no-stereo                 Disable the use of stereo rendering.
  -v [ --verbose ]            Enable debug visualizations
  --log-level-debug           Sets the ROS logger level to debug.

You can use the --fixed-frame argument.

Note that it will also be saved as part of your RViz configuration, so after setting it once, save the configuration as part of your package and you don't need to use the CLA.

edit flag offensive delete link more

Comments

So nothing in the URDF itself. Is there away to do that from the command line at start?

OpenR2 gravatar imageOpenR2 ( 2018-11-28 15:29:15 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-11-28 14:42:42 -0600

Seen: 102 times

Last updated: Nov 29 '18