-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
27 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
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,5 @@ | ||
#!/bin/bash -e | ||
|
||
source $SNAP/usr/bin/utils.sh | ||
|
||
TRANSPORT="$(snapctl get transport)" | ||
# watch the log with: "journalctl -t ${SNAP_NAME}" | ||
log "transport: ${TRANSPORT}" | ||
|
||
if [ "$TRANSPORT" = "builtin" ]; then | ||
log "using builtin transport setting" | ||
else | ||
PROFILE_FILE="${SNAP_COMMON}/${TRANSPORT}.xml" | ||
export FASTRTPS_DEFAULT_PROFILES_FILE=$PROFILE_FILE | ||
log "using ${PROFILE_FILE} transport setting" | ||
log "$(cat $FASTRTPS_DEFAULT_PROFILES_FILE)" | ||
fi | ||
|
||
export ROS_LOCALHOST_ONLY="$(snapctl get ros-localhost-only)" | ||
export ROS_DOMAIN_ID="$(snapctl get ros-domain-id)" | ||
|
||
log "ROS_LOCAHOST_ONLY=${ROS_LOCALHOST_ONLY}" | ||
log "ROS_DOMAIN_ID=${ROS_DOMAIN_ID}" | ||
source $SNAP_COMMON/ros.env | ||
|
||
exec $@ |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd"> | ||
<Domain id="any"> | ||
<General> | ||
<NetworkInterfaceAddress>lo</NetworkInterfaceAddress> | ||
<AllowMulticast>false</AllowMulticast> | ||
</General> | ||
<Discovery> | ||
<ParticipantIndex>auto</ParticipantIndex> | ||
<MaxAutoParticipantIndex>30</MaxAutoParticipantIndex> | ||
<Peers> | ||
<Peer address="localhost"/> | ||
</Peers> | ||
</Discovery> | ||
</Domain> | ||
</CycloneDDS> |
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 |
---|---|---|
|
@@ -19,4 +19,5 @@ log() { | |
|
||
is_integer() { | ||
expr "$1" : '-\?[0-9][0-9]*$' >/dev/null 2>&1 | ||
} | ||
} | ||
|
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