Ask Your Question
0

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

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

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: http://answers.gazebosim.org by gvdhoorn
close date 2017-10-06 09:06:43.718663

Comments

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

gvdhoorn gravatar image gvdhoorn  ( 2017-10-06 02:33:28 -0500 )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 -0500 )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 -0500 )edit

Again: please ask this over at answers.gazebosim.org.

gvdhoorn gravatar image gvdhoorn  ( 2017-10-06 09:04:39 -0500 )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 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

notinuse gravatar image

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

Else you can get them from http://models.gazebosim.org/

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 485 times

Last updated: Oct 06 '17