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 ROS driver for Piksi gps module #416

Merged
merged 8 commits into from
Aug 9, 2022

Conversation

Roozki
Copy link
Contributor

@Roozki Roozki commented Jul 26, 2022

Please fill out the following before requesting review on this PR

Description

Add supporting Swift Navigation Binary Library to external libs folder (libsbp)
As well as a driver to run the module on ROS.

Not 100% sure if this is right, the external library may not download properly

Testing Done

Runs on my 18.04 computer and the precision computer

Resolved Issues

No specific issue resolved, but now the repo can use data from the GPS module.

Review Checklist

(Please check every item to indicate your code complies with it (by changing [ ]->[x]). This will hopefully save both you and the reviewer(s) a lot of time!)
It is the reviewers responsibility to also make sure every item here has been covered

  • Start of document comments: each .cpp and .h file should have a comment at the start of it. See files in src/sample_package for examples.
  • Function comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the classes defined in src/sample_package
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue
    Feel free to make additions of things that we should be checking to this file if you think there's something missing!!!!

Copy link
Collaborator

@ihsan314 ihsan314 left a comment

Choose a reason for hiding this comment

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

This was the error from rosdep:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
swiftnav_piksi: Cannot locate rosdep definition for [libswiftnav]

Do you recall what libswiftnav is?

#!/bin/bash

echo "================================================================"
echo "Installing Siwft Navigation's Binary Protocol library || (GPS)"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
echo "Installing Siwft Navigation's Binary Protocol library || (GPS)"
echo "Installing Swift Navigation's Binary Protocol library || (GPS)"

Copy link
Collaborator

@ihsan314 ihsan314 left a comment

Choose a reason for hiding this comment

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

Sorry I gave you the wrong rosdep command earlier today. This one should hopefully work.

@@ -51,7 +51,7 @@ cd $CURR_DIR
rosdep install --from-paths \
$CURR_DIR/../src \
$CURR_DIR/../src/external_pkgs \
--ignore-src --rosdistro melodic --skip-keys=librealsense2 -y
--ignore-src --rosdistro melodic --skip-keys=librealsense2,libswiftnav -y
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
--ignore-src --rosdistro melodic --skip-keys=librealsense2,libswiftnav -y
--ignore-src --rosdistro melodic --skip-keys=librealsense2 --skip-keys=libswiftnav -y

Copy link
Collaborator

@ihsan314 ihsan314 left a comment

Choose a reason for hiding this comment

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

In addition to the above, run ./clang-format/fix_formatting.sh master

echo "Installing Swift Navigation's Binary Protocol library || (GPS)"
echo "================================================================"

cd external_libs/libsbp/c # get to build space
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
cd external_libs/libsbp/c # get to build space
cd ../external_libs/libsbp/c # get to build space

The path was not relative to $CURR_DIR from the top level script.

Copy link
Collaborator

@ihsan314 ihsan314 left a comment

Choose a reason for hiding this comment

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

It's been a hassle but finally Travis CI is not complaining! You can proceed with squashing and merging the pull request.

@Roozki Roozki merged commit 4622362 into UBC-Snowbots:master Aug 9, 2022
ihsan314 pushed a commit to ihsan314/Snowflake that referenced this pull request Aug 10, 2022
* Add ROS driver for Piksi gps module
Add supporting Swift Navigation Binary Library to external libs folder (libsbp)

* Cleaned Up PR mistakes

* More minor mistakes

* Fixed name of external piksi

* Told ROS to not look for libswiftnav

* Fixed  spelling error

* fixed line 54 to make install_dependencies.sh skip libswiftnav.

* fixed error in install_libspb, corrected a change directory
ihsan314 pushed a commit to ihsan314/Snowflake that referenced this pull request Aug 14, 2022
* Add ROS driver for Piksi gps module
Add supporting Swift Navigation Binary Library to external libs folder (libsbp)

* Cleaned Up PR mistakes

* More minor mistakes

* Fixed name of external piksi

* Told ROS to not look for libswiftnav

* Fixed  spelling error

* fixed line 54 to make install_dependencies.sh skip libswiftnav.

* fixed error in install_libspb, corrected a change directory
ihsan314 pushed a commit to ihsan314/Snowflake that referenced this pull request Aug 15, 2022
* Add ROS driver for Piksi gps module
Add supporting Swift Navigation Binary Library to external libs folder (libsbp)

* Cleaned Up PR mistakes

* More minor mistakes

* Fixed name of external piksi

* Told ROS to not look for libswiftnav

* Fixed  spelling error

* fixed line 54 to make install_dependencies.sh skip libswiftnav.

* fixed error in install_libspb, corrected a change directory
ihsan314 pushed a commit to ihsan314/Snowflake that referenced this pull request Aug 15, 2022
* Add ROS driver for Piksi gps module
Add supporting Swift Navigation Binary Library to external libs folder (libsbp)

* Cleaned Up PR mistakes

* More minor mistakes

* Fixed name of external piksi

* Told ROS to not look for libswiftnav

* Fixed  spelling error

* fixed line 54 to make install_dependencies.sh skip libswiftnav.

* fixed error in install_libspb, corrected a change directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants