-
Notifications
You must be signed in to change notification settings - Fork 29
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
14 changed files
with
729 additions
and
10 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
NaviGator/mission_control/navigator_missions/navigator_missions/2024_wildlife_mission.py
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,58 @@ | ||
#!/usr/bin/env python3 | ||
import numpy as np | ||
from enum import Enum | ||
from geometry_msgs.msg import Point | ||
from mil_misc_tools import ThrowingArgumentParser | ||
from mil_msgs.msg import ObjectsInImage | ||
from mil_msgs.srv import CameraToLidarTransform, CameraToLidarTransformRequest | ||
from mil_tools import rosmsg_to_numpy | ||
|
||
from std_srvs.srv import SetBoolRequest | ||
|
||
from .navigator import NaviGatorMission | ||
|
||
class MoveState(Enum): | ||
NOT_STARTED = 1 | ||
RUNNING = 2 | ||
CANCELLED = 3 | ||
FINISHED = 4 | ||
|
||
class Wildlife2024(NaviGatorMission): | ||
animals_observed = { | ||
"B_M" : False, # Manatee => Counter clockwise | ||
"G_I" : False, # Iguana => Clockwise (by choice) | ||
"R_P" : False # Python => Clockwise | ||
} | ||
|
||
@classmethod | ||
async def setup(cls): | ||
cls.camsub = cls.nh.subscribe("/bbox_pub", ObjectsInImage) | ||
await cls.camsub.setup() | ||
|
||
cls.camera_lidar_tf = cls.nh.get_service_client( | ||
"/wamv/sensors/camera/front_right_cam/image_raw", | ||
CameraToLidarTransform, | ||
) | ||
|
||
@classmethod | ||
async def shutdown(cls): | ||
await cls.camsub.shutdown() | ||
|
||
async def run(self, args): | ||
# Check nearest objects | ||
|
||
# Subscribe to the camera topic | ||
|
||
# Gat access to PCODAR service | ||
unknown_objects = await self.get_sorted_objects(name="UNKNOWN", n=3, throw=False) | ||
|
||
# Associate Object to class | ||
|
||
# Get the point cloud points associated with the object | ||
|
||
# Map the points to the camera frame | ||
|
||
# Classify by mode OR mean of frequent pixels | ||
|
||
# Go to buoy and circle accordingly | ||
pass |
3 changes: 3 additions & 0 deletions
3
NaviGator/mission_control/navigator_missions/navigator_missions/__init__.py
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
169 changes: 169 additions & 0 deletions
169
NaviGator/simulation/navigator_gazebo/models/iguana_buoy/buoy.dae
Large diffs are not rendered by default.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
NaviGator/simulation/navigator_gazebo/models/iguana_buoy/buoy.sdf
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,37 @@ | ||
<?xml version="1.0"?> | ||
<sdf version='1.0'> | ||
<model name='iguana_green_buoy'> | ||
<static>true</static> | ||
<link name='base_link'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<inertial> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<mass>1</mass> | ||
<inertia> | ||
<ixx>0.166667</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.166667</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.166667</izz> | ||
</inertia> | ||
</inertial> | ||
<collision name='base_link_collision'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>file://iguana_buoy/buoy.dae</uri> | ||
</mesh> | ||
</geometry> | ||
</collision> | ||
<visual name='base_link_visual'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>file://iguana_buoy/buoy.dae</uri> | ||
</mesh> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</sdf> |
13 changes: 13 additions & 0 deletions
13
NaviGator/simulation/navigator_gazebo/models/iguana_buoy/model.config
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,13 @@ | ||
<model> | ||
<name>Python 2024 Buoy</name> | ||
<version>1.0</version> | ||
<sdf version='1.0'>buoy.sdf</sdf> | ||
|
||
<author> | ||
<name>Daniel Parra</name> | ||
</author> | ||
|
||
<description> | ||
This is the model for Wildlife Task of RobotX 2024. | ||
</description> | ||
</model> |
169 changes: 169 additions & 0 deletions
169
NaviGator/simulation/navigator_gazebo/models/manatee_buoy/buoy.dae
Large diffs are not rendered by default.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
NaviGator/simulation/navigator_gazebo/models/manatee_buoy/buoy.sdf
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,37 @@ | ||
<?xml version="1.0"?> | ||
<sdf version='1.0'> | ||
<model name='manatee_blue_buoy'> | ||
<static>true</static> | ||
<link name='base_link'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<inertial> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<mass>1</mass> | ||
<inertia> | ||
<ixx>0.166667</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.166667</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.166667</izz> | ||
</inertia> | ||
</inertial> | ||
<collision name='base_link_collision'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>file://manatee_buoy/buoy.dae</uri> | ||
</mesh> | ||
</geometry> | ||
</collision> | ||
<visual name='base_link_visual'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>file://manatee_buoy/buoy.dae</uri> | ||
</mesh> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</sdf> |
13 changes: 13 additions & 0 deletions
13
NaviGator/simulation/navigator_gazebo/models/manatee_buoy/model.config
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,13 @@ | ||
<model> | ||
<name>Python 2024 Buoy</name> | ||
<version>1.0</version> | ||
<sdf version='1.0'>buoy.sdf</sdf> | ||
|
||
<author> | ||
<name>Daniel Parra</name> | ||
</author> | ||
|
||
<description> | ||
This is the model for Wildlife Task of RobotX 2024. | ||
</description> | ||
</model> |
169 changes: 169 additions & 0 deletions
169
NaviGator/simulation/navigator_gazebo/models/python_buoy/buoy.dae
Large diffs are not rendered by default.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
NaviGator/simulation/navigator_gazebo/models/python_buoy/buoy.sdf
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,37 @@ | ||
<?xml version="1.0"?> | ||
<sdf version='1.0'> | ||
<model name='python_red_buoy'> | ||
<static>true</static> | ||
<link name='base_link'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<inertial> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<mass>1</mass> | ||
<inertia> | ||
<ixx>0.166667</ixx> | ||
<ixy>0</ixy> | ||
<ixz>0</ixz> | ||
<iyy>0.166667</iyy> | ||
<iyz>0</iyz> | ||
<izz>0.166667</izz> | ||
</inertia> | ||
</inertial> | ||
<collision name='base_link_collision'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>file://python_buoy/buoy.dae</uri> | ||
</mesh> | ||
</geometry> | ||
</collision> | ||
<visual name='base_link_visual'> | ||
<pose frame=''>0 0 0 0 -0 0</pose> | ||
<geometry> | ||
<mesh> | ||
<uri>file://python_buoy/buoy.dae</uri> | ||
</mesh> | ||
</geometry> | ||
</visual> | ||
</link> | ||
</model> | ||
</sdf> |
13 changes: 13 additions & 0 deletions
13
NaviGator/simulation/navigator_gazebo/models/python_buoy/model.config
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,13 @@ | ||
<model> | ||
<name>Python 2024 Buoy</name> | ||
<version>1.0</version> | ||
<sdf version='1.0'>buoy.sdf</sdf> | ||
|
||
<author> | ||
<name>Daniel Parra</name> | ||
</author> | ||
|
||
<description> | ||
This is the model for the python in Wildlife Task of RobotX 2024. | ||
</description> | ||
</model> |
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
Submodule axros
updated
2 files
+2 −2 | axros/src/axros/publisher.py | |
+2 −2 | axros/src/axros/subscriber.py |
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,2 @@ | ||
35748 | ||
41321 |