Following the instructions of the tutorial:
http://www.ros.org/wiki/rviz/UserGuide
1.-Installing rviz:
$ rosdep install rviz
When I tried to install rviz I got the next answer:
oscar@oscar-MAC:~/ros/ros$ rosdep install rviz
executing this script:
set -o errexit
#No Packages to install
As I couldn't install it I decided to look if I allready had it, so I tried to run it:
oscar@oscar-MAC:~/ros/ros$ rosrun rviz rviz
[rosrun] Couldn't find executable named rviz below /home/oscar/ros/stacks/visualization/rviz
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun] /home/oscar/ros/stacks/visualization/rviz
[rosrun] /home/oscar/ros/stacks/visualization/rviz/src/rviz
When I've got that answer I looked up on that directory (/home/oscar/ros/stacks/visualization/rviz) and then I compiled it:
oscar@oscar-MAC:~/ros/stacks/visualization/rviz$ rosmake
It compiled without problems but when I tried to run rviz it showed me the next message:
oscar@oscar-MAC:~/ros/stacks/visualization/rviz$ rosrun rviz rviz
[ERROR] 1280354462.238279000: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
^C[ INFO] 1280354464.400475000: Loading general config from [/home/oscar/.rviz/config]
[ INFO] 1280354464.403360000: Loading display config from [/home/oscar/.rviz/display_config]
[rospack] warning: trailing slash found in ROS_PACKAGE_PATH
[ INFO] 1280354465.258272000: Saving general config to [/home/oscar/.rviz/config]
[ INFO] 1280354465.259305000: Saving display config to [/home/oscar/.rviz/display_config]
mmm it seems that I need to run roscore to fix the problem... well yes I runed roscore and in a new terminal I runed rviz and worked normaly XD.
Now let's learn all the features of rviz!!
Next goal-> Learn the tf node.
No hay comentarios:
Publicar un comentario