GithubHelp home page GithubHelp logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Fixed in trunk (Rev. 3625), thanks for your contribution! I still need to apply 
it to the groovy-devel branch, I'll close the issue then.

Original comment by [email protected] on 21 Nov 2012 at 5:03

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from alufr-ros-pkg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Applied to  the groovy version to be released (0.4.8). However, I noticed that 
the patch changes the topic names, all topics get moved into the local 
namespace (since both node handles use "~" from the default parameter). I 
removed this for the global NodeHandle since some topics need to be in "/". 

Is it necessary to also expose that as a parameter to the nodelet? Then two 
node handles need to be passed to the constructor.

Original comment by [email protected] on 8 Jan 2013 at 4:25

from alufr-ros-pkg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
AFAIK, one should avoid hard-coding absolute namespaces (starting with "/"), 
because one can't be sure that everybody is using the same topic names, even 
when some are commonly used. Topic names can easily be adjusted to one's needs 
by remappings in the launch file.

Handling namespace and node handles are a bit more complicated when using 
nodelets, since they get loaded by the nodelet manager. So, in order to answer 
your question I would need to test your changes first. Which version should I 
download?

Original comment by [email protected] on 8 Jan 2013 at 11:53

from alufr-ros-pkg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
It's not hard-coded but uses the default no-namespace constructor of 
NodeHandles, which results in a global namespace unless remapped. I see the 
global namespace as an essential part of anonymous pub/sub in ROS. If each 
topic is only in a private namespace, then each publisher needs to know exactly 
what subscriber it expects, or one needs to remap topics every time. It should 
be possible, however, to swap out similar nodes, e.g. replacing one publisher 
with another without the subscriber caring about the actual implementation.

To this end octomap_server has some topics in a global namespace (NodeHandle 
m_nh) and other less important ones (debug, parameters) in the private one 
(NodeHandle private_nh). This should not change, otherwise other people's code 
and launch files will break because suddenly topics are different.

The changes back to the old behavior (while preserving the constructor 
parameter for the private NodeHandle) are in the latest commits here:
ROS groovy: 
https://alufr-ros-pkg.googlecode.com/svn/branches/octomap_stacks-groovy-devel/oc
tomap_mapping/
ROS fuerte: 
http://alufr-ros-pkg.googlecode.com/svn/trunk/octomap_stacks/octomap_mapping/

If the nodelet also needs access to the global NodeHandle, then we simply need 
another parameter in the constructor.

Original comment by ar.hrng on 9 Jan 2013 at 11:24

from alufr-ros-pkg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Following up on the issue about not being able to load the nodelet:
It's a bit weird. The configuration (macro call, plugin info export etc.) looks 
fine. However, the nodelet can't be found (e.g. roslaunch throws errors, 
`rospack plugins --attrib=plugin nodelet` doesn't list the plufin).

The package path is set correctly and even rosmake runs through without errors. 
`roscd` and `rospack find` all work, but `rospack profile` hides the whole 
stack. 

Currently, I have no clue what's causing this problem.

PS: I have tested octomap_server from the `octomap_stacks-groovy-devel` branch.

Original comment by [email protected] on 12 Jun 2013 at 10:11

from alufr-ros-pkg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 25, 2024
Closing here, issue continues on GitHub:
https://github.com/OctoMap/octomap_mapping/issues/1

Original comment by ar.hrng on 7 Nov 2013 at 10:44

  • Changed state: Duplicate

from alufr-ros-pkg.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.