Hi Guys:
I met a problem about
main.js cannot read the newly added c function.
Can anyone help me?
I try to add a c function (get_lane_type) to main.js,
compile successfully according to the instructions in README.md, and copy the file to Viewer
But when the webpage executes it shows an error
main.js:409 Uncaught TypeError: odr_lanes_mesh.get_lane_type is not a function
at animate (main.js:409:46)
Hi Guys: I met a problem about main.js cannot read the newly added c function. Can anyone help me?
I try to add a c function (get_lane_type) to main.js,
![Embind_cpp](https://github.com/grepthat/libOpenDRIVE/assets/17819413/489bd205-e1f5-4c1b-9d3b-165d17e434f7)
compile successfully according to the instructions in README.md, and copy the file to Viewer![compiler_result](https://github.com/grepthat/libOpenDRIVE/assets/17819413/29e46ba9-5fd1-47c3-9358-f57f2f1e2da1)
But when the webpage executes it shows an error main.js:409 Uncaught TypeError: odr_lanes_mesh.get_lane_type is not a function at animate (main.js:409:46)![execution_result](https://github.com/grepthat/libOpenDRIVE/assets/17819413/405893fc-8818-4d0b-a629-191c22147186)
The modified file is as follows modified_files.zip