Skip to content

Commit afc7e18

Browse files
New groot page (#28)
1 parent a19d762 commit afc7e18

File tree

13 files changed

+635
-444
lines changed

13 files changed

+635
-444
lines changed

src/pages/migration.md renamed to docs/migration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
2-
title: Migration to BT.CPP 4.x
2+
title: Migration from BT.CPP 3.x
33
description: How to migrate your code from version 3.X
44
hide_table_of_contents: false
5+
sidebar_position: 7
56
---
67

78
# Migrating from version 3.X to 4.X
2.01 KB
Loading

docs/tutorial-basics/tutorial_12_groot2.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,25 @@ These models are expressed in XML. In this case, they would be:
3939
Nevertheless, **you should not create these
4040
XML descriptions by hand**.
4141

42-
BT.CPP has a specific function that, will
43-
generate this XML for you, after the
44-
Node types were registered into the factory.
42+
BT.CPP has a specific function that will
43+
generate this XML for you.
4544

4645
```cpp
4746
BT::BehaviorTreeFactory factory;
47+
//
4848
// register here your user-defined Nodes
49-
// ...
49+
//
5050
std::string xml_models = BT::writeTreeNodesModelXML(factory);
5151

5252
// this xml_models should be saved to file and
5353
// loaded in Groot2
5454
```
5555

56+
To import these models into the UI, either:
57+
58+
- Save the XML into a file (called for instance `models.xml`) and click on the button **Import Models** in Groot2.
59+
- or manually add the XML section directly to your `.xml` or `.btproj` file.
60+
5661
## Adding real-time visualization to Groot
5762

5863
:::note

docusaurus.config.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,8 @@ const config = {
9191
},
9292
{
9393
position: 'left',
94-
label: 'Tools',
95-
items: [
96-
{
97-
to: '/groot',
98-
label: 'Groot'
99-
},
100-
{
101-
to: '/moveit_studio',
102-
label: 'MoveIt Studio'
103-
}
104-
]
105-
},
106-
{
107-
to: '/migration', label: 'Migration from 3.X', position: 'left'
94+
label: 'Groot2',
95+
to: '/groot',
10896
},
10997
{
11098
type: 'docsVersionDropdown',

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"dependencies": {
1717
"@cmfcmf/docusaurus-search-local": "^0.11.0",
1818
"@dipakparmar/docusaurus-plugin-umami": "^2.0.2",
19-
"@docusaurus/core": "^2.4.0",
20-
"@docusaurus/plugin-ideal-image": "^2.4.0",
21-
"@docusaurus/preset-classic": "^2.4.0",
19+
"@docusaurus/core": "^2.4.1",
20+
"@docusaurus/plugin-ideal-image": "^2.4.1",
21+
"@docusaurus/preset-classic": "^2.4.1",
2222
"@mdx-js/react": "^1.6.22",
2323
"autoprefixer": "^10.4.13",
2424
"bootstrap": "^5.2.3",
@@ -32,7 +32,7 @@
3232
"react-responsive-carousel": "^3.2.23"
3333
},
3434
"devDependencies": {
35-
"@docusaurus/module-type-aliases": "^2.4.0"
35+
"@docusaurus/module-type-aliases": "^2.4.1"
3636
},
3737
"browserslist": {
3838
"production": [

0 commit comments

Comments
 (0)