Closed LukasGombar closed 5 years ago
src/navigation/OccupancyGrid.js
this.quaternion = new THREE.Quaternion(
message.info.origin.orientation.x,
message.info.origin.orientation.y,
message.info.origin.orientation.z,
message.info.origin.orientation.w
);
In r68 of THREE.js position, rotation, quaternion and scale properties were made immutable so you can't do this assignment after that version. A better approach would be:
var q = new THREE.Quaternion(
message.info.origin.orientation.x,
message.info.origin.orientation.y,
message.info.origin.orientation.z,
message.info.origin.orientation.w
);
this.quaternion.copy(q);
The grid is still not rendering correctly, but it solves this specific error message.
Thank you very much. That solved an issue. Now everything is working. I just changed this in ROS3D.js file directly.
Now I have question who can edit this in file directly on github branch?
I need to run map from mapping in 3D OccupancyGrid. I am trying to make run new version of builded ros3djs with my existing html code, previous version of ros3djs works without problem. I have an issue when loading occupancy grid for map, with error:
Tested already from example with the same error at: https://github.com/RobotWebTools/ros3djs/blob/develop/examples/map.html