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 prefix to nodelet name #28

Merged
merged 2 commits into from
Sep 11, 2016
Merged

Conversation

furushchev
Copy link
Contributor

To work with robots with more than 2 rgb cameras, we have to avoid conflicts of each nodelet names.
In depth.launch.xml, disparity.launch.xml, nodelet names are already defined with prefix, so I added prefix also to rgb.launch.xml same as other include launch files.

@@ -8,7 +8,7 @@
<arg name="ir" />

<!-- Rectified image -->
<node pkg="nodelet" type="nodelet" name="rectify_ir"
<node pkg="nodelet" type="nodelet" name="$(arg ir)_rectify_ir"
Copy link
Member

Choose a reason for hiding this comment

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

Is it safe to depend on an arg that is missing default value?

Copy link
Contributor Author

@furushchev furushchev Sep 8, 2016

Choose a reason for hiding this comment

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

@130s We already have launch file in which there are dependency on an arg in depth.launch.xml (https://github.com/ros-drivers/rgbd_launch/blob/indigo-devel/launch/includes/depth.launch.xml#L14).
If ir is not given, this launch file is invalid, and if ir is set to empty string, processed messages are published as global namespace and nodelet name will be _rectify_ir, which is also valid as ROS node name.(but I think it will be unusual name)

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for clarifying.

@furushchev
Copy link
Contributor Author

(just for reminder)
please merge this pull request after #29. CC @130s

@130s
Copy link
Member

130s commented Sep 8, 2016

@furushchev Now that #29 is merged, would you be base and see how Travis goes?

@furushchev
Copy link
Contributor Author

@130s Thanks. Rebased origin/indigo-devel.

@furushchev
Copy link
Contributor Author

@130s Now test passed. Please merge if there is no problem.

@130s
Copy link
Member

130s commented Sep 11, 2016

@furushchev could you rebase to the indigo-devel branch to pull in #31?

@furushchev
Copy link
Contributor Author

@130s rebased origin/indigo-devel

@130s 130s merged commit 62a98e3 into ros-drivers:indigo-devel Sep 11, 2016
@furushchev furushchev deleted the prefix branch September 11, 2016 06:10
@furushchev
Copy link
Contributor Author

@130s Thank you for merging!

@furushchev furushchev mentioned this pull request Sep 13, 2016
130s added a commit to 130s/rgbd_launch that referenced this pull request Oct 26, 2022
Enable rostest

Merge pull request ros-drivers#28 from furushchev/prefix

add prefix to nodelet name
@130s 130s mentioned this pull request Oct 26, 2022
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