Ask Your Question
0

Rviz not loading model

asked 2014-04-09 04:00:18 -0500

apple233 gravatar image

updated 2016-10-24 08:56:57 -0500

ngrennan gravatar image

Hi,

I'm new to ROS and was having a go at a tutorial for using the Clearthpath Husky simulator.

Gazebo works fine, but Rviz for the husky reports an error finding the model. I get this output in the terminal:

Traceback (most recent call last):
  File "/opt/ros/hydro/lib/joint_state_publisher/joint_state_publisher", line 327, in <module>
    jsp = JointStatePublisher()
  File "/opt/ros/hydro/lib/joint_state_publisher/joint_state_publisher", line 25, in __init__
    robot = xml.dom.minidom.parseString(description).getElementsByTagName('robot')[0]
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1931, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
TypeError: must be string or read-only buffer, not None

I'm using ROS Hydro on Ubuntu 13.04. Haven't been able to find a solution for this, so any help would be greatly appreciated.

Thanks!

edit retag flag offensive close merge delete

Comments

Running rviz using the command roslaunch husky_viz view_robot.launch <launch> <arg name="config" default="robot"/> <node pkg="husky_interactive_markers" name="interactive_markers" type="marker_server"> <remap from="cmd_vel" to="husky/cmd_vel"/> </node> <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher"/> <node name="rviz" pkg="rviz" type="rviz" args="-d $(find husky_viz)/rviz/$(arg config).rviz"/> </launch>

apple233 gravatar image apple233  ( 2014-04-10 15:44:34 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-04-09 04:06:40 -0500

metal gravatar image

Hi there, Are you using the right URDF model of the robot?. It seems that the joint state publisher has difficulty parsing the URDF file. Could you please post the launch file for working with rviz?. Thank you.

edit flag offensive delete link more

Comments

Hi, I was just running this: roslaunch husky_viz view_robot.launch Which I believe is from ros-hydro-husky-desktop.

apple233 gravatar image apple233  ( 2014-04-09 23:24:51 -0500 )edit
1

answered 2014-07-01 23:16:17 -0500

ragtz gravatar image

The view_robot.launch file is intended to be used with an existing instance of the robot in gazebo. So, to run this file first run: roslaunch husky_gazebo husky_empty_world.launch. You can then launch view_robot.launch and select "Interact" to bring the interactive markers into view.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-04-09 04:00:18 -0500

Seen: 896 times

Last updated: Jul 01 '14