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

Traces of Gazebo left even after it has exited

asked 2018-08-22 19:49:38 -0500

pitosalas gravatar image

updated 2018-08-24 20:15:14 -0500

I came across this today. I had exited Gazebo and yet when I looked at my topics I still saw that cmd_vel (and a bunch of others) were still being subscribed to by Gazebo. I could find no process called gaz* anything. Finally on an intuition I killed roscore which was running on another computer and restarted it and that did the trick and all traces of gazebo were gone.

Question is: was it something about how I exited Gazebo? Is this not unusual? Was my solution the right one? I also notice that with my kinetic install I am not getting the latest Gazebo. Which one should I be running? Thanks!

Note

@fergs this might also somehow have contributed to my time == 0 question that we just discussed in this separate topic: https://answers.ros.org/question/3009...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-08-25 03:51:20 -0500

gvdhoorn gravatar image

updated 2018-08-25 06:19:02 -0500

I had exited Gazebo and yet when I looked at my topics

was this with rostopic list and/or rostopic info and/or rqt_graph?

I still saw that cmd_vel (and a bunch of others) were still being subscribed to by Gazebo

Q&As #q285530 (and the linked #q9521) probably are relevant here (note: "abnormal termination" is not a necessary condition for what is described in the Q&As to happen).

If there are no Gazebo processes running any more, then seeing some subscriptions still being reported by the Master is not enough to conclude that "traces of Gazebo [are] left".


Edit:

Question is: was it something about how I exited Gazebo? Is this not unusual? Was my solution the right one? I also notice that with my kinetic install I am not getting the latest Gazebo. Which one should I be running? Thanks!

first a general comment: please try to not ask 4 questions in one ROS Answers post. That is not how this site is intended to work. A ratio of one question per post is ideal.

As to your questions:

was it something about how I exited Gazebo?

we can't know, as you don't tell us how you shut it down.

Is this not unusual?

No, not necessarily. But it depends on whether what you saw was caused by what I so far assume caused it.

Was my solution the right one?

Shutting down the Master? I wouldn't call it a solution, but it will result in all registrations vanishing, so for that specifically this could be a course of action to take, yes.

I also notice that with my kinetic install I am not getting the latest Gazebo. Which one should I be running?

Kinetic comes with Gazebo 7 (see REP 3: Platforms by Distribution - Kinetic Kame (May 2016 - May 2021). That is not the latest, no. It is the one with (probably) the best integration with Kinetic Kame and the packages that come with that.

You could install a newer version, using the procedure documented on gazebosim.org/Which combination of ROS/Gazebo versions to use.

Three things to keep in mind though:

  1. binary versions of ROS Kinetic packages that make use of / depend on Gazebo will have been built against Gazebo 7. Trying to install those using apt-get very likely will result in apt trying to remove your new Gazebo version and installing the version 7.
  2. any packages that are to be used with Gazebo (with Gazebo plugins fi) that you build from source for Kinetic will also most likely have been written with Gazebo 7 in mind. Changing to a different version could result in problems with those packages.
  3. besides build issues, the simulation itself may not behave the same between different versions of Gazebo. Dynamics may be different, resulting in different robot behaviour. Any software you write -- or others have written -- will inevitably (implicitly) assume certain behaviour. If you suddenly invalidate that (implicit) assumption, you may run into issues.
edit flag offensive delete link more

Comments

Thanks for the response and links. I get your point and will try to ask better questions in the future.

pitosalas gravatar image pitosalas  ( 2018-08-25 05:46:48 -0500 )edit

I get your point and will try to ask better questions in the future.

don't take it too much as criticism. It's just something to keep in mind.

Askbot (SO-like) fora are a bit different in that regards from regular fora.

gvdhoorn gravatar image gvdhoorn  ( 2018-08-25 05:54:30 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-08-22 19:49:38 -0500

Seen: 468 times

Last updated: Aug 25 '18