Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Compile-time error referencing M_PI when building on Ubuntu 18.04 #6

Closed
@mjeronimo

Description

@mjeronimo

examples/t04_blackboard.cpp uses the macro M_PI, which is not defined, resulting in:

src/behavior_tree_core/examples/t04_blackboard.cpp:44:34: error: ‘M_PI’ was not declared in this scope
     const Pose2D mygoal = {1, 2, M_PI};
                                  ^~~~

Perhaps add the following:

#ifndef M_PI
#define M_PI <value>
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions