-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update accessor generation - add min/max support - generate include guards for types - general Lua improvements (local, ...) Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
- Loading branch information
Showing
2 changed files
with
70 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
return block | ||
{ | ||
name="myblock", | ||
license="MIT", | ||
meta_data="", | ||
port_cache=true, | ||
name = "myblock", | ||
license = "MIT", | ||
meta_data = "", | ||
|
||
-- generate code for caching port poitners: | ||
port_cache = true, | ||
|
||
-- generate stubs and support for the following struct types: | ||
types = { | ||
{ name="vector", class='struct' }, -- Enum will follow once implemented in C | ||
{ name="robot_data", class='struct' }, | ||
{ name = "vector", class='struct' }, | ||
{ name = "robot_data", class='struct' }, | ||
}, | ||
|
||
configurations= { | ||
{ name="joint_limits", type_name="double", len=5 }, | ||
{ name="info", type_name="struct robot_data" }, | ||
configurations = { | ||
{ name = "joint_limits", type_name = "double", min=0, max=6 }, | ||
{ name = "info", type_name = "struct robot_data" }, | ||
}, | ||
|
||
ports = { | ||
{ name="pos", in_type_name="double", in_data_len=5, doc="measured position [m]" }, | ||
{ name="ctrl_mode", in_type_name="int32_t", out_type_name="int32_t" }, | ||
{ name = "pos", in_type_name = "double", in_data_len = 5, doc="measured position [m]" }, | ||
{ name = "ctrl_mode", in_type_name = "int32_t", out_type_name = "int32_t" }, | ||
}, | ||
|
||
operations = { start=true, stop=true, step=true } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters