Robotics StackExchange | Archived questions

Problems starting Rviz

Hey,

i tried to follow this Using A URDF In Gazebo Tutorial, but in the beginning i couldnt continue because my rviz crashes all the time. I postet as code all the steps which are leading to the error incl. creating a new plain workspace and so on can you to tell me where my problem is?

schultza@Andreas:~$ source /opt/ros/indigo/setup.bash
schultza@Andreas:~$ mkdir -p ~/catkin_ws_new/src
schultza@Andreas:~$ cd ~/catkin_ws_new/src
schultza@Andreas:~/catkin_ws_new/src$ catkin_init_workspace
Creating symlink "/home/schultza/catkin_ws_new/src/CMakeLists.txt" pointing to "/opt/ros/indigo/share/catkin/cmake/toplevel.cmake"
schultza@Andreas:~/catkin_ws_new/src$ cd ..
schultza@Andreas:~/catkin_ws_new$ catkin_make
Base path: /home/schultza/catkin_ws_new
Source space: /home/schultza/catkin_ws_new/src
Build space: /home/schultza/catkin_ws_new/build
Devel space: /home/schultza/catkin_ws_new/devel
Install space: /home/schultza/catkin_ws_new/install
####
#### Running command: "cmake /home/schultza/catkin_ws_new/src -DCATKIN_DEVEL_PREFIX=/home/schultza/catkin_ws_new/devel -DCMAKE_INSTALL_PREFIX=/home/schultza/catkin_ws_new/install" in "/home/schultza/catkin_ws_new/build"
####
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /home/schultza/catkin_ws_new/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Found PythonInterp: /usr/bin/python (found version "2.7.6") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/schultza/catkin_ws_new/build/test_results
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.9
-- BUILD_SHARED_LIBS is on
-- Configuring done
-- Generating done
-- Build files have been written to: /home/schultza/catkin_ws_new/build
####
#### Running command: "make -j4 -l4" in "/home/schultza/catkin_ws_new/build"
####
schultza@Andreas:~/catkin_ws_new$ source devel/setup.bash
schultza@Andreas:~/catkin_ws_new$ cd src
schultza@Andreas:~/catkin_ws_new/src$ git clone https://github.com/ros-simulation/gazebo_ros_demos.git
Cloning into 'gazebo_ros_demos'...
remote: Counting objects: 193, done.
remote: Total 193 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (193/193), 57.71 KiB | 0 bytes/s, done.
Resolving deltas: 100% (86/86), done.
Checking connectivity... done.
schultza@Andreas:~/catkin_ws_new/src$ cd ..
schultza@Andreas:~/catkin_ws_new$ catkin_make
Base path: /home/schultza/catkin_ws_new
Source space: /home/schultza/catkin_ws_new/src
Build space: /home/schultza/catkin_ws_new/build
Devel space: /home/schultza/catkin_ws_new/devel
Install space: /home/schultza/catkin_ws_new/install
####
#### Running command: "cmake /home/schultza/catkin_ws_new/src -DCATKIN_DEVEL_PREFIX=/home/schultza/catkin_ws_new/devel -DCMAKE_INSTALL_PREFIX=/home/schultza/catkin_ws_new/install" in "/home/schultza/catkin_ws_new/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/schultza/catkin_ws_new/devel
-- Using CMAKE_PREFIX_PATH: /home/schultza/catkin_ws_new/devel;/opt/ros/indigo
-- This workspace overlays: /home/schultza/catkin_ws_new/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/schultza/catkin_ws_new/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.9
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 4 packages in topological order:
-- ~~  - rrbot_control
-- ~~  - rrbot_description
-- ~~  - rrbot_gazebo
-- ~~  - gazebo_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'rrbot_control'
-- ==> add_subdirectory(gazebo_ros_demos/rrbot_control)
-- +++ processing catkin package: 'rrbot_description'
-- ==> add_subdirectory(gazebo_ros_demos/rrbot_description)
-- +++ processing catkin package: 'rrbot_gazebo'
-- ==> add_subdirectory(gazebo_ros_demos/rrbot_gazebo)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'gazebo_tutorials'
-- ==> add_subdirectory(gazebo_ros_demos/custom_plugin_tutorial)
-- Using these message generators: gencpp;genlisp;genpy
-- Boost version: 1.54.0
-- Found PROTOBUF: /usr/lib/i386-linux-gnu/libprotobuf.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/schultza/catkin_ws_new/build
####
#### Running command: "make -j4 -l4" in "/home/schultza/catkin_ws_new/build"
####
Scanning dependencies of target gazebo_tutorials
[100%] Building CXX object gazebo_ros_demos/custom_plugin_tutorial/CMakeFiles/gazebo_tutorials.dir/src/simple_world_plugin.cpp.o
Linking CXX shared library /home/schultza/catkin_ws_new/devel/lib/libgazebo_tutorials.so
[100%] Built target gazebo_tutorials
schultza@Andreas:~/catkin_ws_new$ roslaunch rrbot_description rrbot_rviz.launch
... logging to /home/schultza/.ros/log/cefa6e14-1883-11e4-8e42-485ab604aada/roslaunch-Andreas-13603.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://Andreas:48161/

SUMMARY
========

PARAMETERS
 * /joint_state_publisher/use_gui: True
 * /robot_description: <?xml version="1....
 * /rosdistro: indigo
 * /rosversion: 1.11.7

NODES
  /
    joint_state_publisher (joint_state_publisher/joint_state_publisher)
    robot_state_publisher (robot_state_publisher/state_publisher)
    rviz (rviz/rviz)

auto-starting new master
process[master]: started with pid [13618]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to cefa6e14-1883-11e4-8e42-485ab604aada
process[rosout-1]: started with pid [13631]
started core service [/rosout]
process[joint_state_publisher-2]: started with pid [13648]
process[robot_state_publisher-3]: started with pid [13649]
process[rviz-4]: started with pid [13662]
[robot_state_publisher-3] process has died [pid 13649, exit code -11, cmd /opt/ros/indigo/lib/robot_state_publisher/state_publisher __name:=robot_state_publisher __log:=/home/schultza/.ros/log/cefa6e14-1883-11e4-8e42-485ab604aada/robot_state_publisher-3.log].
log file: /home/schultza/.ros/log/cefa6e14-1883-11e4-8e42-485ab604aada/robot_state_publisher-3*.log
/opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher:116: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
  self.pub = rospy.Publisher('joint_states', JointState)
[rviz-4] process has died [pid 13662, exit code -11, cmd /opt/ros/indigo/lib/rviz/rviz -d /home/schultza/catkin_ws_new/src/gazebo_ros_demos/rrbot_description/launch/rrbot.rviz __name:=rviz __log:=/home/schultza/.ros/log/cefa6e14-1883-11e4-8e42-485ab604aada/rviz-4.log].
log file: /home/schultza/.ros/log/cefa6e14-1883-11e4-8e42-485ab604aada/rviz-4*.log
^C[joint_state_publisher-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Asked by schultza on 2014-07-31 02:28:59 UTC

Comments

Is your joint_state_publisher up-tp-date? Did you install latest updates?

Asked by BennyRe on 2014-07-31 03:57:05 UTC

Sry but how can I check this? pretty new to everything :(

Asked by schultza on 2014-07-31 04:37:02 UTC

sudo apt-get upgrade

Asked by BennyRe on 2014-07-31 05:13:01 UTC

ah ok, I thought i should update especially the joint_state_publisher, but yes i did this already

Asked by schultza on 2014-07-31 05:29:55 UTC

Answers