allenai / allenai/ai2thor

Modify code to get projection matrix

Ouverte
#286 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C#
Étoiles
1.8k
Forks
296
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hi,
I want to write an interface for the projection matrix of camera, and follow the code modification of this issue: https://github.com/allenai/ai2thor/issues/110.
However, when I run the local build version, it always stuck at "controller.start()". The log shows the following error:

JsonSerializationException: Self referencing loop detected for property 'normalized' with type 'UnityEngine.Quaternion'. Path 'agents[0].objects[0].projectionMatrix.rotation'.
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference

I follow this link: https://stackoverflow.com/questions/7397207/json-net-error-self-referencing-loop-detected-for-type, trying to solve this problem, but it does not work. To be more precise, I tried to modify the JsonConvert setting to " PreserveReferencesHandling = PreserveReferencesHandling.Objects". I also tried to add "[JsonObject(IsReference = true)] " to "objectMetadata" class, but it doesn't work either. I just want to know how I can get this modification work?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.