Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

noetic compatible#445

Open
my-name-is-D wants to merge 4 commits into
uuvsimulator:masterfrom
my-name-is-D:master
Open

noetic compatible#445
my-name-is-D wants to merge 4 commits into
uuvsimulator:masterfrom
my-name-is-D:master

Conversation

@my-name-is-D

Copy link
Copy Markdown

Those are the changes required to make uuv_simulator runs with noetic.
I am not to credit for most of those changes, you can find them if you search well somewhere in the Issues list. However it does not make it easy for users so that's why it can at least be found in the requested pull.

Those change might makes this version not compatible with older ros distro. That has to be verified.
Also, there may be still some sensors that are not adapted, i remember having realised some more changes afterward, but I'm not sure if it was to make it work with our drone or because of noetic incompatibilities.
Don't hesitate to open an issue or to improve this pull if it happens.

@onurbagoren

Copy link
Copy Markdown

Testing with this PR, seeing that there are issues with installing the dependencies, specifically when running
rosdep install --from-paths src --ignore-src --rosdistro=noetic -yr there is an issue that comes up relating to the installation of python-scipy, which is not a package available on Ubuntu 20.04. Might need to adjust the package,xml for the files that require this dependency, along with porting the scripts that use this dependency to python3.

Add missing return statements
@Itamare4

Copy link
Copy Markdown

@my-name-is-D Thanks for the fix.
Could you please adjust the dependency to python3-scipy?
It would be nice to merge this update

@technoo0

Copy link
Copy Markdown

I hope this get merged soon

@my-name-is-D

Copy link
Copy Markdown
Author

sorry about the delay. I can't do the changes for still a while.

In the meantime, you meant to add :
<depend>python-scipy</depend> in the package.xml, right?

though: "along with porting the scripts that use this dependency to python3"
I didn't spot scipy import in the scripts. Could you give me a lead on when it's used there?

@Rezenders

Rezenders commented Mar 9, 2022

Copy link
Copy Markdown

sorry about the delay. I can't do the changes for still a while.

In the meantime, you meant to add :
python-scipy in the package.xml, right?

though: "along with porting the scripts that use this dependency to python3"
I didn't spot scipy import in the scripts. Could you give me a lead on when it's used there?

@my-name-is-D You can do like @ngxingyu did in the PR my-name-is-D#1 to your repo.

Another change I think is necessary is that in files: uuv_control/uuv_control_utils/scripts/trajectory_marker_publisher.py and uuv_control/uuv_trajectory_control/scripts/rov_mb_fl_controller.py you changed the shebangs to python 3. The recommendation is to do like this: https://wiki.ros.org/UsingPython3/SourceCodeChanges#Changing_shebangs

Also, you should not remove uuv_simulator package.
And you need to signoff your commits as stated in: https://github.com/ngxingyu/uuv_simulator/blob/ec7c1d4624b1b750f63cceebec2e1c65d82b4658/CONTRIBUTING.md#sign-your-work

I think the result should be a combination of the 3 commits:

@pes-ethanp

pes-ethanp commented Mar 18, 2022

Copy link
Copy Markdown

I've cloned the repo and added the changes from Rezender's commits, however am getting a failure to make due to uuv_gazebo_plugins being unable to find Protobuf. Have tried removing and re-installing libprotobuf-dev and protobuf-compiler, installing protobuf from Google's source github repositories, without success.

Tracing the callback leads to find_package(Protobuf REQUIRED) as the cause, with the specific error message being: "Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)"

I can't distinguish whether this is simply my not having installed protobuf correctly somehow on my machine (probably this...), or Noetic and Protobuf don't like each other, or just something not updated in uuvsim. I don't recall having any protobuf related issues with melodic...

Edit: Worked around this issue by doing a fresh re-install of Ubuntu 20 and protobuf from source with Google's instructions in their github repository. However Gazebo 11 still throwing a lot of errors upon catkin_make about incompatible protocol buffer headers.

@pes-ethanp

Copy link
Copy Markdown

Edit to my previous comment is not being saved for some reason, so copy pasting what I had typed here as a new one.. Uninstalled the source installation of protobuf, did a reinstall of noetic (and along with it libprotobuf-dev, protobuf-compiler, etc). That fixed the protobuf issues. Had a typo (my fault) in the changes I made to BuoyantObject.hh from the commits in this PR that caused "template placeholder type must be followed by a simple declarator-id" errors. After that, compilation got terminated with a few objects with fatal error: Killed signal terminated program cc1plus during catkin_make. I just re-ran catkin_make and it finished with no issues.

@Cavalletta98

Copy link
Copy Markdown

hi, when will be merged?

Changed python dependencies to python3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants