Home | Tutorials | Wiki | Issues
Ask Your Question
0

To visualize collisional region

asked 2015-06-21 20:24:52 -0600

IsaacS gravatar image

updated 2015-06-21 20:45:41 -0600

Is there a way to visualize collision (box, cylinder etc.) defined in SDF? If I'm not mistaken, we still need to give Gazebo visual and collision information separately (as found in another thread). So I'm debugging the collisional region by iterating the following steps many times, which is very cumbersome to me.

  1. Edit sdf
  2. Run Gazebo
  3. Run a robot to try hitting the defined but transparent collision region. If it fails to hit, go back to step 1.

User's operation environment: Gazebo 2.2, ROS Indigo on Ubuntu Trusty

Since I'm using ROS, I can use RViz if there's a feature for this. Also for development purpose, upgrading Gazebo can be an option if only higher version software has a functionality, but the users will run the resulted files on Gazebo 2.2 (or any version that is compatible with ROS Indigo without tweak).

edit retag flag offensive close merge delete

Comments

1

There should be an option on the top menu bar to View -> Show Collisions, does that appear for you?

chapulina gravatar imagechapulina ( 2015-06-21 20:29:54 -0600 )edit

@chapulina that does it. If you repost it as an answer I'll mark it as an answer. Thanks!

IsaacS gravatar imageIsaacS ( 2015-06-21 20:38:02 -0600 )edit

Glad it worked. I was wondering if it wasn't there for Gazebo 2.2 ;)

chapulina gravatar imagechapulina ( 2015-06-21 21:11:56 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-21 21:10:54 -0600

There should be an option on the top menu bar to View -> Show Collisions.

To show collisions for a single model, right-click the model and choose View -> Show collision.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-06-21 20:24:52 -0600

Seen: 183 times

Last updated: Jun 21 '15