Skip to content

Commit

Permalink
Re-added repeater mode. Added beacon agent logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-riley committed Oct 25, 2019
1 parent 2415418 commit adb0d69
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 43 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ find_package(catkin REQUIRED COMPONENTS
rospy
std_msgs
geometry_msgs
nav_msgs
octomap_msgs
message_generation
marble_artifact_detection_msgs
)

add_message_files(
Expand All @@ -16,12 +19,17 @@ add_message_files(
BeaconArray.msg
AgentArtifact.msg
BaseMonitor.msg
AgentMsg.msg
NeighborMsg.msg
)

generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
nav_msgs
octomap_msgs
marble_artifact_detection_msgs
)

catkin_package(
Expand Down
3 changes: 1 addition & 2 deletions launch/multi_agent_sim.launch
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- How long without a message to consider 'lost comms' -->
<arg name="commThreshold" default="2" />
<!-- How far to drive from the anchor before automatically dropping a beacon -->
<arg name="anchorDropDist" default="50" />
<arg name="anchorDropDist" default="30" />
<!-- How far to drive before automatically dropping a beacon -->
<arg name="dropDist" default="25" />
<!-- Minimum distance between nodes before dropping another beacon -->
Expand Down Expand Up @@ -64,7 +64,6 @@
<param name="potentialNeighbors" value="$(arg potentialNeighbors)" />
<param name="baseTopic" value="$(arg baseTopic)" />
<param name="stopTopic" value="$(arg stopTopic)" />
<param name="stopTopic" value="$(arg stopTopic)" />
<param name="waitTopic" value="$(arg waitTopic)" />
<param name="commTopic" value="$(arg commTopic)" />
<param name="odomTopic" value="$(arg odomTopic)" />
Expand Down
10 changes: 10 additions & 0 deletions msg/AgentMsg.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Header header
string id
string cid
nav_msgs/Odometry odometry
geometry_msgs/PoseStamped goal
octomap_msgs/Octomap map
BeaconArray commBeacons
marble_artifact_detection_msgs/ArtifactArray newArtifacts
std_msgs/Time lastMessage
NeighborMsg[] neighbors
6 changes: 6 additions & 0 deletions msg/NeighborMsg.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
string id
string cid
nav_msgs/Odometry odometry
geometry_msgs/PoseStamped goal
octomap_msgs/Octomap map
std_msgs/Time lastMessage
Loading

0 comments on commit adb0d69

Please sign in to comment.