Skip to content
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

Add odometry and lidar to mars_rover model for Nav2 #10

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

mkhansenbot
Copy link
Contributor

Adds odometry and lidar plugins to gazebo. Also adds base_link, lidar_link, and connecting joints required for nav2.

Copy link

@Bckempa Bckempa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a URDF/Gazebo expert but I'll mark the approved once I get my build working.

@quarkytale any input on this?

@Bckempa Bckempa added this to the humble-2024.01.0 milestone Jan 22, 2024
@mkhansenbot
Copy link
Contributor Author

Re-added background_color to the plugin parameters. Also fixed the odometry plugin name to be consistent with the other plugins

@quarkytale
Copy link
Contributor

Looks good to me if the build works!

</link>

<gazebo reference="lidar_link">
<material>Gazebo/Black</material>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this works as intended in the new Gazebo, I'm planning to try out this along with supporting PRs.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm not sure it does either because I saw a warning when I ran, but I also saw that the camera has a material specified

<material>Gazebo/Green</material>

and I do see the lidar show up as black. If this is wrong let me know I can remove or change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the new Gazebo can't parse 'Gazebo/' materials, its recently added to Harmonic. For rendering green, you might need to change it to:

<material>
  <ambient>0 1 0 1</ambient>
  <diffuse>0 1 0 1</diffuse>
  <specular>0.1 0.1 0.1 1</specular>
</material>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quarkytale - what if I remove the material tag entirely? If it isn't being parsed, I would guess it's ignored and it will make no technical difference if I remove it, except to clean up dead code, which is good.

@mkhansenbot
Copy link
Contributor Author

@quarkytale, @Bckempa - let me know how I should proceed so that I can get approval

@mkhansenbot
Copy link
Contributor Author

mkhansenbot commented Jan 30, 2024

@quarkytale @Bckempa @ivanperez-keera - I squashed my commits down to a minimal logical number and added the issue to the commit message

I think the only thing unresolved are the <material> tags, which are non functional, so I filed an issue (#12) and will fix in the next iteration, as I'm not sure whether to delete them entirely or not.

Please review and approve.

Fix indentation for mars_rover control plugin

Set odom publish frequency to 10

Fix plugin filename to be consistent

re-add background_color to plugin parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants