File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed
include/behaviortree_cpp/flatbuffers Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -13,27 +13,21 @@ jobs:
13
13
matrix :
14
14
include :
15
15
- os : windows-latest
16
- shell : " pwsh -Login {0}"
17
- pixi_install : " iwr -useb https://pixi.sh/install.ps1 | iex"
18
16
build_depend : vs2022_win-64=19.*
19
17
tests_command : " 'PATH=\\\" $PATH;build/Release\\\" build/tests/Release/behaviortree_cpp_test.exe'"
20
18
- os : ubuntu-latest
21
- shell : " bash -el {0}"
22
- pixi_install : " curl -fsSL https://pixi.sh/install.sh | bash"
23
19
build_depend : " gxx=12.2.*"
24
20
tests_command : " ./build/tests/behaviortree_cpp_test"
25
21
runs-on : ${{ matrix.os }}
26
- defaults :
27
- run :
28
- shell : ${{ matrix.shell }}
29
22
steps :
30
23
# Pixi is the tool used to create/manage conda environment
31
- - name : Set up pixi
32
- run : |
33
- ${{ matrix.pixi_install }}
34
- - name : Setup windows path
35
- if : " startsWith(runner.os, 'windows')"
36
- run : echo "C:\Users\runneradmin\AppData\Local\pixi\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
24
+ -
uses :
prefix-dev/[email protected]
25
+ with :
26
+ pixi-version : v0.7.0
27
+ locked : false
28
+ frozen : false
29
+ run-install : false
30
+ manifest-path : build-env/pixi.yaml
37
31
- name : Make pixi workspace
38
32
run : |
39
33
pixi init build-env
Original file line number Diff line number Diff line change @@ -80,13 +80,15 @@ inline void CreateFlatbuffersBehaviorTree(flatbuffers::FlatBufferBuilder& builde
80
80
children_uid.push_back (child->UID ());
81
81
}
82
82
83
+ // Const cast to ensure public access to config() overload
84
+ const auto & node_config = const_cast <BT::TreeNode const &>(*node).config ();
83
85
std::vector<flatbuffers::Offset<Serialization::PortConfig>> ports;
84
- for (const auto & it : node-> config () .input_ports )
86
+ for (const auto & it : node_config .input_ports )
85
87
{
86
88
ports.push_back (Serialization::CreatePortConfigDirect (builder, it.first .c_str (),
87
89
it.second .c_str ()));
88
90
}
89
- for (const auto & it : node-> config () .output_ports )
91
+ for (const auto & it : node_config .output_ports )
90
92
{
91
93
ports.push_back (Serialization::CreatePortConfigDirect (builder, it.first .c_str (),
92
94
it.second .c_str ()));
You can’t perform that action at this time.
0 commit comments