Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sloped plane snaps back to horizontal on rendering #26

Closed
osrf-migration opened this issue May 17, 2019 · 0 comments
Closed

Sloped plane snaps back to horizontal on rendering #26

osrf-migration opened this issue May 17, 2019 · 0 comments
Labels
bug Something isn't working rendering Involves Ignition Rendering

Comments

@osrf-migration
Copy link

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


Prerequisites

  • [ X ] Put an X between the brackets on this line if you have done all of the following:

Description

It looks like plane updates are resetting the normal direction, but not the pose.

Steps to Reproduce

  1. Load the sloped_normal world, which has this ground plane:

     <model name="ground_plane">
      ...
     <visual name="visual">
       <geometry>
         <plane>
           <normal>0.2 0.0 1</normal>
           <size>100 100</size>
         </plane>
       </geometry>
     </visual>
     ...
     </model>
    
  2. Press play and see the world snap to horizontal:

    planesnap.gif

  3. Now try the sloped_pose world, which has a slope due to model pose, not normal, i.e.:

     <model name="ground_plane">
       <pose>0 0 0 0.1 0 0</pose>
         ...
        <visual name="visual">
           <geometry>
         <plane>
           <normal>0 0 1</normal>
           <size>100 100</size>
         </plane>
       </geometry>
     </visual>
     ...
     </model>
    
  4. Press play, and the plane doesn't move, as it should be.

Expected behavior:

The plane should maintain its normal direction once simulation starts.

Actual behavior:

It looks like the plane's normal is being reset to unit Z.

Reproduces how often:

100%

Versions

default branch, version 2 candidate

Additional Information

I suspect we may be forgetting to propagate the normal correctly at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rendering Involves Ignition Rendering
Projects
None yet
Development

No branches or pull requests

2 participants