There is a theoretical problem with what you're trying to achieve. Gazebo is a simulation and is used to replace a real robot in your robotic system. If you want to control your real robot and a gazebo simulated robot you are in effect controlling two different robots not one. You should be able to set this up using namespaces, but I'm not sure this is what you're trying to do.
Why do you want to run Gazebo alongside the real robot?
Originally posted by PeteBlackerThe3rd with karma: 9529 on 2019-09-13
This answer was NOT ACCEPTED on the original site
Post score: 4
Original comments
Comment by Lycanthropy on 2019-09-13:
E.g. if we attain telemetry and odometry information from our real robot, and we're sitting in another room, and want to monitor it, kind of like a simulated monitoring program, we'd like to monitor the movement in Gazebo.
Comment by jayess on 2019-09-13:
Why not use RViz instead of Gazebo?
Comment by PeteBlackerThe3rd on 2019-09-13:
I agree, this is exactly what RVIZ is designed for. Gazebo is not designed to visualise anything apart from it's own internal simulation.
Comment by gvdhoorn on 2019-09-13:
@Lycanthropy: to add to what the previous posters wrote: consider Gazebo as a stand-in of your robot. It's not a visualisation tool.
See #q316396 for a related Q&A.
Comment by Lycanthropy on 2019-09-13:
Thank you so much for your responses. I figured it out. Putting it as the answer. Upvoting for help.