ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

InsertModelFile("model://sun") [closed]

asked 2017-10-05 18:22:37 -0600

ash_100 gravatar image

I am trying to insert a "sun" light in the gazebo world. I am able to successfully use InsertModelFile("model://beer") but not InsertModelFile("model://sun"). Moreover, I am able to remove the sun light from the world by using RemoveModel("sun").

I am using gazebo7 and ROS kinetic on Ubuntu 16.04

edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: by gvdhoorn
close date 2017-10-06 09:06:43.718663


I appreciate @lkchie replying, but @ash_100: please ask Gazebo-specific questions like this over at ROS Answers is a support forum for ROS. Gazebo Answers for Gazebo.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-06 02:33:28 -0600 )edit

It is working fine with Gazebo2. Is it a bug or a feature in gazebo7?

ash_100 gravatar image ash_100  ( 2017-10-06 08:41:28 -0600 )edit

This seems to be bug in Gazebo7. It works fine with Gazebo2

ash_100 gravatar image ash_100  ( 2017-10-06 09:02:09 -0600 )edit

Again: please ask this over at

gvdhoorn gravatar image gvdhoorn  ( 2017-10-06 09:04:39 -0600 )edit

I see you already did that: InsertModelFile("model://sun") and Works in Gazebo2 bot NOT in Gazebo7.

Closing this question then.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-06 09:06:32 -0600 )edit

Finally: please don't cross-post questions like this: it leads to duplicated discussion (and thus effort).

gvdhoorn gravatar image gvdhoorn  ( 2017-10-06 09:07:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-06 02:20:08 -0600

notinuse gravatar image

Check that you have Sun model in "/home/.gazebo/models". (.gazebo is hidden folder)

Else you can get them from

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-10-05 18:22:37 -0600

Seen: 1,063 times

Last updated: Oct 06 '17