Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
e3560795
Commit
e3560795
authored
6 years ago
by
TSC21
Committed by
Beat Küng
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
make 'build' dir creation optional
parent
f43c581a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
msg/tools/generate_microRTPS_bridge.py
+4
-1
4 additions, 1 deletion
msg/tools/generate_microRTPS_bridge.py
src/modules/micrortps_bridge/micrortps_client/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/modules/micrortps_bridge/micrortps_client/CMakeLists.txt
with
5 additions
and
1 deletion
msg/tools/generate_microRTPS_bridge.py
+
4
−
1
View file @
e3560795
...
...
@@ -68,6 +68,7 @@ parser.add_argument("-r", "--receive", dest='receive', metavar='*.msg', type=str
parser
.
add_argument
(
"
-a
"
,
"
--agent
"
,
dest
=
'
agent
'
,
action
=
"
store_true
"
,
help
=
"
Flag for generate the agent, by default is true if -c is not specified
"
)
parser
.
add_argument
(
"
-c
"
,
"
--client
"
,
dest
=
'
client
'
,
action
=
"
store_true
"
,
help
=
"
Flag for generate the client, by default is true if -a is not specified
"
)
parser
.
add_argument
(
"
-i
"
,
"
--generate-idl
"
,
dest
=
'
idl
'
,
action
=
"
store_true
"
,
help
=
"
Flag for generate idl files for each msg
"
)
parser
.
add_argument
(
"
-m
"
,
"
--mkdir-build
"
,
dest
=
'
mkdir_build
'
,
action
=
"
store_true
"
,
help
=
"
Flag to create
'
build
'
dir
"
)
parser
.
add_argument
(
"
-t
"
,
"
--topic-msg-dir
"
,
dest
=
'
msgdir
'
,
type
=
str
,
help
=
"
Topics message dir, by default msg/
"
,
default
=
"
msg
"
)
parser
.
add_argument
(
"
-b
"
,
"
--uorb-templates-dir
"
,
dest
=
'
uorb_templates
'
,
type
=
str
,
help
=
"
uORB templates dir, by default msg_dir/templates/uorb_microcdr
"
,
default
=
default_uorb_templates_dir
)
parser
.
add_argument
(
"
-q
"
,
"
--urtps-templates-dir
"
,
dest
=
'
urtps_templates
'
,
type
=
str
,
help
=
"
uRTPS templates dir, by default msg_dir/templates/urtps
"
,
default
=
default_urtps_templates_dir
)
...
...
@@ -99,6 +100,7 @@ else:
agent
=
args
.
agent
client
=
args
.
client
idl
=
args
.
idl
mkdir_build
=
args
.
mkdir_build
del_tree
=
args
.
del_tree
px_generate_uorb_topic_files
.
append_to_include_path
({
msg_folder
},
px_generate_uorb_topic_files
.
INCL_DEFAULT
,
package
)
agent_out_dir
=
get_absolute_path
(
args
.
agentdir
)
...
...
@@ -201,7 +203,8 @@ def generate_agent(out_dir):
shutil
.
rmtree
(
agent_out_dir
+
"
/fastrtpsgen
"
)
cp_wildcard
(
urtps_templates_dir
+
"
/microRTPS_transport.*
"
,
agent_out_dir
)
os
.
rename
(
agent_out_dir
+
"
/microRTPS_agent_CMakeLists.txt
"
,
agent_out_dir
+
"
/CMakeLists.txt
"
)
mkdir_p
(
agent_out_dir
+
"
/build
"
)
if
(
mkdir_build
):
mkdir_p
(
agent_out_dir
+
"
/build
"
)
os
.
chdir
(
prev_cwd_path
)
return
0
...
...
This diff is collapsed.
Click to expand it.
src/modules/micrortps_bridge/micrortps_client/CMakeLists.txt
+
1
−
0
View file @
e3560795
...
...
@@ -81,6 +81,7 @@ if (NOT "${config_rtps_send_topics}" STREQUAL "" OR NOT "${config_rtps_receive_t
${
send_topic_opt
}
${
send_topic_files
}
${
receive_topic_opt
}
${
receive_topic_files
}
--generate-idl
--mkdir-build
--topic-msg-dir
${
PX4_SOURCE_DIR
}
/msg
--uorb-templates-dir
"/templates/uorb_microcdr"
--urtps-templates-dir
"/templates/urtps"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment