Git Product home page Git Product logo

ad-xolib's People

Contributors

javedulu avatar lukaswikander avatar victorjarlow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ad-xolib's Issues

Support for MSVC compiler

Hello again,
the following is already solved and therefore just for your information - maybe you want to include these information in one of your next commits. :)

I registered two pretty small errors while compiling the xosc.h-file with MSVC2017 64 bit.

  1. At line 138:
    enum class e_ReferenceContext : std::uint8_t
    {
    ABSOLUTE, //absolute
    RELATIVE //relative
    };
    The enumerations ABSOLUTE and RELATIVE seems to be already defined in MSVC. After changing them to ABSOLUTE_ and RELATIVE_ the error was solved.

  2. At line 3054:
    struct Polyline
    {
    /**/
    public:
    Polyline(){};
    Polyline(pugi::xml_node node);
    void save(pugi::xml_node node);
    virtual ~Polyline(){};
    public:
    std::vector<std::shared_ptr<Vertex>> m_Vertexs; //xs:element
    };
    The class name Polyline is already defined as a function in wingdi.h (Windows). I assume, that this is also linked to the MSCV compiler. I changed Polyline to Polyline_ and compiled without error.

Of course I also changed every occurrence of the changed enumerations and the Polyline class.

Again, thank you for your very useful library!
Stay healthy

build error in xodr.h

First things first: Thank you for sharing this useful library! :)

Unfortunately I'm running into a build error, no matter if I use the header files directly in my C++ project or if I build the project via cmake.

I got the following error messages:
xodr.h(30): error C2971: ' t_patternstr': template parameter 'pattern': 'e_countryCode_iso3166alpha2_pattern': a variable with non-static storage duration cannot be used as a non-type argument

\xosc.h(27): error C2971: ' t_patternstr': template parameter 'pattern': 'parameter_pattern': a variable with non-static storage duration cannot be used as a non-type argument

For my own C++ project I'm using Qt 5.14.1 MSVC2017 64bit with C++17 standard.
For the cmake build I used the following commands (--target was not working for me):
cd 'path-to-OpenDriveScenarioParser'
mkdir build
cmake . -B build -G "Visual Studio 15 2017 Win64"
cmake --build build

I'm very curious to know where the error comes from. Apparently it has not occurred so far?!

Build step in readme does not build python binding

In the original build step, the command cmake . --target build will do nothing anything after cmake . -B build, and will not build the python binding. Besides, cmake . -B build will create the build folder automatically and there is no need to manually create the folder.

The correct building commands should be:

git clone https://github.com/javedulu/ad-xolib.git
cd ad-xolib
git submodule update --init --recursive
cmake . -B build
cmake --build build

Please check.

missing file "xodr_export.h"

Thanks a lot for your helpful project. I've cloned the repository and its submodules, but there is no file like "xodr_export.h" detectable within the project (but it is used in "xodr.h"). Is this an issue from cloning or is there an other workaround to get access to this file?

Missing lane properties in the Python object xodr()

When parsing some of the xodr-examples in the samples folder using pyxodr, I found that that the lane object does only contain "id" as member.
I could imagine that, when creating the python bindings, the "relationship" between the lane object and its inherited class, that carries the missing objects, gets broken.

t_road_lanes_laneSection_lr_lane link missing

But as I digged a little bit deeper into the "lane" properties, I found out that lane only has an ODR-member "id". All the other members (type, width, roadMark, etc.) are missing.
Here is a snippet from python:

dir(ax.OpenDRIVE.road[1].lanes.laneSection[0].left.lane[0])``
['class', 'delattr', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'id']


IMHO, I think the problem is when defining the pybind, there is no link to the class t_road_lanes_laneSection_lr_lane
from t_road_lanes_laneSection_left/right/center_lane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.