o3de / o3de-extras

Other
58 stars 60 forks source link

Physx Debug not working for Robot Prefab in the Manipulation Template #669

Closed utk-hua closed 4 months ago

utk-hua commented 4 months ago

Describe the bug While using Physx debug tools in Game mode of the robotic manipulation template, enabling visualizations, collisions, contact etc. The joints, articulation, mesh collider components of the robot are not visualized.

Assets required O3DE Robotic Manipulation Template

Steps to reproduce Steps to reproduce the behavior:

  1. Build the O3DE Engine with PhysX 5 enabled. (point-release/23102)
  2. Download o3de-extras ROS Gem (point-release/23102 ) and register with the engine.
  3. Start a project based on the Robotic Manipulation Template, open the RoboticManipulation level.
  4. Go to the game mode.
  5. Press (~) to go to the debug mode.
  6. Click on Physx Debug
  7. Click on any visualization you want, the robot arm components are not visualized.

Expected behavior Joints, Colliders of the robot prefab to be visualized

Actual behavior Physics components of other entities in the environment are visualized, but there are no visualizations for the robot prefab.

Screenshots/Video

Found in Branch point-release/23102

Commit ID from o3de/o3de and o3de/o3de-extras repositories

o3de : e22213ea946932dc2f94d9f1392e98b4bf2b2c3f o3de-extras : e2426a4242e9fd11c7b902f6aff3379af06d3556

Desktop/Device (please complete the following information):

lemonade-dm commented 4 months ago

@utk-hua I believe you need to enable PhysX 5 for the Robotic Workflow using ROS2 to work correctly for manipulation. That can be done at the CMake configure step by setting the CMake cache variable of AZ_USE_PHYSX5.

The workaround is only needed temporarily as the Phys Gem is being split into both a PhysX 4 and PhysX 5 version as of this PR by @spham-amzn

utk-hua commented 4 months ago

@lumberyard-employee-dm thanks for your reply! forgot to mention that I have built the engine with physx5 enabled. I have updated it in the description.

jhanca-robotecai commented 4 months ago

I did a fresh build using o3de/o3de-extras 2310.2 (same commits as yours) and the template worked correctly for me. Maybe your problem is caused by #668?

debug.webm

michalpelka commented 4 months ago

Hello @utk-hua did you managed to run articulated robot with guidance from Jan? Please give us feedback to have this issue concluded.

jhanca-robotecai commented 4 months ago

I will close the issue due to no response. Please reopen if you still have any problems.