-
Notifications
You must be signed in to change notification settings - Fork 195
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
Connect to a Specific Device using IP address as input #153
Open
samialperen
wants to merge
12
commits into
luxonis:ros-release
Choose a base branch
from
samialperen:multi-camera-support-ros
base: ros-release
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 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f73904f
Stereo inertial publisher node now supports a way to connect to indiv…
20a584e
Added useWithMxId option as well an option to list all devices and co…
e57960f
useWithIP, useWithMxId, and none of them (connect automatically, defa…
972091c
Stereo inertial node launch file updated to accommodate new parameter…
2cfcb1e
if condition is fixed to include any_state which corresponds to devic…
4e9eea5
Unnecessary condition under useWithIP conditinal branch removed.
d31e32f
Added conditions to ROS1 for the case when users select useWithIP or …
9d3f9d3
now using standard get all available devices function to get a vector…
c0b5e95
simplifying the code.
0676041
Clearing out unnecessary params from the previous commits.
d9b41bd
Fixed non empty ipaddress and mxId check for ROS2 launch file.
9514c6e
fixing ros2 pnh error
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
This file contains 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,37 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<!-- Multiple camera args --> | ||
<arg name="enable_camera1" default="true"/> | ||
<arg name="enable_camera2" default="false"/> | ||
<arg name="useWithIP_camera1" default="false"/> | ||
<arg name="useWithIP_camera2" default="false"/> | ||
<arg name="ip_address_camera1" default=""/> | ||
<arg name="ip_address_camera2" default=""/> | ||
<arg name="useWithMxId_camera1" default="false"/> | ||
<arg name="useWithMxId_camera2" default="false"/> | ||
<arg name="mxId_camera1" default=""/> | ||
<arg name="mxId_camera2" default=""/> | ||
<arg name="tf_prefix_camera1" default="oak_front"/> | ||
<arg name="tf_prefix_camera2" default="oak_back"/> | ||
|
||
<!-- First Camera --> | ||
<include if="$(eval arg('enable_camera1') == true)" file="$(find depthai_examples)/launch/stereo_inertial_node.launch"> | ||
<arg name="tf_prefix" value="$(arg tf_prefix_camera1)" /> | ||
<arg name="useWithIP" value="$(arg useWithIP_camera1)"/> | ||
<arg name="ipAddress" value="$(arg ip_address_camera1)"/> | ||
<arg name="useWithMxId" value="$(arg useWithMxId_camera1)"/> | ||
<arg name="mxId" value="$(arg mxId_camera1)"/> | ||
</include> | ||
|
||
<!-- Second Camera --> | ||
<include if="$(eval arg('enable_camera2') == true)" file="$(find depthai_examples)/launch/stereo_inertial_node.launch"> | ||
<arg name="tf_prefix" value="$(arg tf_prefix_camera2)" /> | ||
<arg name="useWithIP" value="$(arg useWithIP_camera2)"/> | ||
<arg name="ipAddress" value="$(arg ip_address_camera2)"/> | ||
<arg name="useWithMxId" value="$(arg useWithMxId_camera2)"/> | ||
<arg name="mxId" value="$(arg mxId_camera2)"/> | ||
</include> | ||
|
||
<!-- More cameras can be added in the same fashion --> | ||
|
||
</launch> |
This file contains 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 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 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 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.
it is
x
here. you are checking for empty in the code.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.
@saching13 Good catch! I fixed it with the new commit