MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / BT_JSON_CONVERTER

Function BT_JSON_CONVERTER

examples/t11_groot_howto.cpp:30–34  ·  view source on GitHub ↗

This macro will generate the code that is needed to convert the object to/from JSON. You still need to call BT::RegisterJsonDefinition () in main() NOLINTNEXTLINE(misc-use-internal-linkage)

Source from the content-addressed store, hash-verified

28// in main()
29// NOLINTNEXTLINE(misc-use-internal-linkage)
30BT_JSON_CONVERTER(Position2D, pos)
31{
32 add_field("x", &pos.x);
33 add_field("y", &pos.y);
34}
35
36struct Waypoint
37{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected