Skip to content

Conversation

J-C-Haley
Copy link

Added two parameters, server_name and server_ip, to allow connection to network & wireless VINT hubs to all libraries. Tested only on a temperature phidget, but should work on anything that connects to a vint hub.

@@ -23,6 +23,12 @@

# optional param is_hub_port_device, used if connected to a VINT hub
<!-- <param name="is_hub_port_device" value="false"/> -->

# optional param server_name, required to locate remote network servers
<!-- <param name="server_name" value="myPhidgetServer" /> -->
Copy link
Contributor

Choose a reason for hiding this comment

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

There's some extra whitespace at the beginning of this line.

Copy link
Contributor

@mintar mintar left a comment

Choose a reason for hiding this comment

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

Apart from the tiny whitespace issue (see my comment above), this looks good to me.

@mintar
Copy link
Contributor

mintar commented Apr 6, 2022

Thanks the PR, and for copy-pasting it everywhere. @clalancette : We should really think about whether we want to create a superclass where we can put all of this stuff so we don't duplicate code everywhere...

@clalancette
Copy link
Contributor

Thanks the PR, and for copy-pasting it everywhere. @clalancette : We should really think about whether we want to create a superclass where we can put all of this stuff so we don't duplicate code everywhere...

That seems reasonable to me, though I likely won't have time to do it in the near future. I'll suggest we go ahead with this PR as-is (with whatever changes it needs), and then we can do a separate PR just doing that cleanup.

@mintar
Copy link
Contributor

mintar commented Apr 6, 2022

I'll suggest we go ahead with this PR as-is (with whatever changes it needs), and then we can do a separate PR just doing that cleanup.

Yes, I was going to suggest that as well.

@mintar mintar closed this in 6734150 Apr 6, 2022
@mintar
Copy link
Contributor

mintar commented Apr 6, 2022

I've fixed the small whitespace error and merged the PR in 6734150. Thanks for your contribution!

@J-C-Haley
Copy link
Author

Thanks! Hurray for my first PR. My two cents is that the specifics for hardware diversification have to happen on some level, so it's kind of nice having these settings in all the repos individually? Then in a bigger launch file different phidgets can be all set with one argument

@J-C-Haley J-C-Haley deleted the noetic-networkhub branch April 6, 2022 21:41
@mintar
Copy link
Contributor

mintar commented Apr 7, 2022

It was your first PR? Nice! :)

@J-C-Haley
Copy link
Author

Thanks! And actually, I've just discovered setting the server parameters isn't necessary if one uses network discovery:

PhidgetNet_enableServerDiscovery(PHIDGETSERVER_DEVICEREMOTE);

would there be any reason to not have this enabled? I can add it as another launch parameter option, or we could just bake it in?

@mintar
Copy link
Contributor

mintar commented Apr 28, 2022

I'd prefer it as a parameter.

jlblancoc pushed a commit to jlblancoc/phidgets_drivers that referenced this pull request Dec 23, 2022
Added two parameters, server_name and server_ip, to allow connection to
network & wireless VINT hubs to all libraries. Tested only on a
temperature phidget, but should work on anything that connects to a vint
hub.

Closes ros-drivers#127.
mintar added a commit to mintar/phidgets_drivers that referenced this pull request Feb 16, 2024
mintar added a commit that referenced this pull request Mar 11, 2024
This is a port of #127 to ROS2.

Closes #135.
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.

3 participants