You should double-check your rviz settings and make sure the robot_state_publisher node is running to publish the TF transforms from your URDF.