-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/aruco sim #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MidnightRaider06
wants to merge
9
commits into
umdloop:main
Choose a base branch
from
MidnightRaider06:feature/aruco-sim
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ebeb05a
Added Aruco Marker 0 model
MidnightRaider06 b2d2592
Merge branch 'main' of https://github.com/MidnightRaider06/athena-cod…
MidnightRaider06 ba59ae6
Fixed model.config
MidnightRaider06 80e6531
Added normal camera to URDF
MidnightRaider06 d17ba61
Add Bounding Box (BB) msg for Aruco detection
MidnightRaider06 e2cd2d6
Fixed import path for BB msg
MidnightRaider06 62b9c03
Added BB to CMakeLists so the interface is generated
MidnightRaider06 d73db84
Fixed ArUco marker image, previous one wasn't 4x4 50
MidnightRaider06 25508bf
Fixed aruco_node OpenCV version issues, added support for sim parameter
MidnightRaider06 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Git LFS file not shown
This file contains hidden or 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,15 @@ | ||
| <?xml version="1.0" ?> | ||
| <sdf version="1.4"> | ||
| <model name="Marker0"> | ||
| <static>true</static> | ||
| <link name="link"> | ||
| <visual name="visual"> | ||
| <geometry> | ||
| <mesh> | ||
| <uri>model://marker0/meshes/Marker0.dae</uri> | ||
| </mesh> | ||
| </geometry> | ||
| </visual> | ||
| </link> | ||
| </model> | ||
| </sdf> |
This file contains hidden or 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,15 @@ | ||
| <?xml version="1.0" ?> | ||
| <sdf version="1.4"> | ||
| <model name="Marker0"> | ||
| <static>true</static> | ||
| <link name="link"> | ||
| <visual name="visual"> | ||
| <geometry> | ||
| <mesh> | ||
| <uri>model://marker0/meshes/Marker0.dae</uri> | ||
| </mesh> | ||
| </geometry> | ||
| </visual> | ||
| </link> | ||
| </model> | ||
| </sdf> |
This file contains hidden or 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,20 @@ | ||
| <?xml version="1.0"?> | ||
|
|
||
| <model> | ||
| <name>Marker0</name> | ||
| <version>1.0</version> | ||
| <sdf version="1.6">model.sdf</sdf> | ||
| <sdf version="1.5">model-1_5.sdf</sdf> | ||
| <sdf version="1.4">model-1_4.sdf</sdf> | ||
|
|
||
| <author> | ||
| <name>Mikael Arguedas</name> | ||
| <email>mikael.arguedas@gmail.com</email> | ||
| </author> | ||
|
|
||
| <description> | ||
| ArUco Marker 0 (4x4), generated with code from https://github.com/AD-lite24/aruco_in_gazebo. | ||
| Modified by Abhinav Kota (abhinav.kota06@gmail.com) | ||
| </description> | ||
|
|
||
| </model> |
This file contains hidden or 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,15 @@ | ||
| <?xml version="1.0" ?> | ||
| <sdf version="1.6"> | ||
| <model name="Marker0"> | ||
| <static>true</static> | ||
| <link name="link"> | ||
| <visual name="visual"> | ||
| <geometry> | ||
| <mesh> | ||
| <uri>model://marker0/meshes/Marker0.dae</uri> | ||
| </mesh> | ||
| </geometry> | ||
| </visual> | ||
| </link> | ||
| </model> | ||
| </sdf> |
This file contains hidden or 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 hidden or 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,59 @@ | ||
| <?xml version="1.0"?> | ||
| <robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
|
||
| <xacro:macro name="camera" params="parent *origin"> | ||
| <link name="camera_link"> | ||
| <visual> | ||
| <origin xyz="0 0 0" rpy="0 0 0"/> | ||
| <geometry> | ||
| <box size="0.025 0.09 0.025"/> | ||
| </geometry> | ||
| <material name="camera_material"> | ||
| <color rgba="0.1 0.1 0.1 1.0"/> | ||
| </material> | ||
| </visual> | ||
| <collision> | ||
| <origin xyz="0 0 0" rpy="0 0 0"/> | ||
| <geometry> | ||
| <box size="0.025 0.09 0.025"/> | ||
| </geometry> | ||
| </collision> | ||
| </link> | ||
|
|
||
| <link name="camera_optical_frame"/> | ||
|
|
||
| <joint name="camera_joint" type="fixed"> | ||
| <xacro:insert_block name="origin"/> | ||
| <parent link="${parent}"/> | ||
| <child link="camera_link"/> | ||
| </joint> | ||
|
|
||
| <joint name="camera_optical_joint" type="fixed"> | ||
| <origin xyz="0 0 0" rpy="${-pi/2} 0 ${-pi/2}"/> | ||
| <parent link="camera_link"/> | ||
| <child link="camera_optical_frame"/> | ||
| </joint> | ||
|
|
||
| <gazebo reference="camera_link"> | ||
| <sensor name="camera" type="camera"> | ||
| <always_on>1</always_on> | ||
| <update_rate>10</update_rate> | ||
| <visualize>true</visualize> | ||
| <topic>camera</topic> | ||
| <camera name="camera"> | ||
| <horizontal_fov>1.05</horizontal_fov> | ||
| <image> | ||
| <width>640</width> | ||
| <height>480</height> | ||
| <format>R8G8B8</format> | ||
| </image> | ||
| <clip> | ||
| <near>0.1</near> | ||
| <far>10.0</far> | ||
| </clip> | ||
| </camera> | ||
| </sensor> | ||
| </gazebo> | ||
|
|
||
| </xacro:macro> | ||
| </robot> |
This file contains hidden or 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 hidden or 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,10 @@ | ||
| int64 img_width | ||
| int64 img_height | ||
| int64 bb_top_left_x | ||
| int64 bb_top_left_y | ||
| int64 bb_bottom_right_x | ||
| int64 bb_bottom_right_y | ||
| int64 bb_top_right_x | ||
| int64 bb_top_right_y | ||
| int64 bb_bottom_left_x | ||
| int64 bb_bottom_left_y |
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
src/subsystems/navigation/aruco_detection/aruco_detection/correction_node.py
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use Detection2D here?