Comments (4)
This is always tricky as it probably requires sweeping changes across the whole kobuki-turtlebot workspace. I've no clear idea of what it would entail across the whole workspace...so as I said, tricky and would require significant testing.
Indigo would be a better place to experiment making sweeping multi-kobuki tests as we haven't yet officially 'released' there yet and are less likely to disturb people with bugs.
from kobuki_desktop.
tf_prefix should work after #34.
So I can configure like this https://github.com/robotics-in-concert/concert_services/blob/indigo/concert_service_gazebo/robots/kobuki/kobuki.launch#L13-L29
from kobuki_desktop.
I am trying the roslaunch example that you link to, which is at commit robotics-in-concert/concert_services@ae5a524 at time of writing (so for posterity, your original URL would be https://github.com/robotics-in-concert/concert_services/blob/ae5a524edcb8f99f58f9dad26bc190766731cd64/concert_service_gazebo/robots/kobuki/kobuki.launch#L13-L29).
Upon trying the example, I found that the topic names are correctly placed in a namespace according to the tf_prefix
parameter. However, the frame_id
of messages on the odom topic of each robot are not reliably correct unless the <param>
elements of the launch file are moved to within <node pkg="gazebo_ros" ...>
. Unless this is done, the parameter tf_prefix
is at the root of the parameter namespace, so each inclusion of the <launch>
code (as in the example) rewrites the value of tf_prefix
.
My explanation of this behavior is as follows. gazebo_ros_utils, which is now used in the Kobuki Gazebo plugin, assigns to tf_prefix_
using tf::getPrefixParam. This tf
function uses the roscpp NodeHandle functions to get the parameter value. The documentation for NodeHandle::searchParam indicates that the parameter tree is crawled up until a match is found. Thus the problem can be solved by making tf_prefix
be a parameter within the namespace of the node handle for each plugin instantiation,
<node pkg="gazebo_ros" ...>
<param name="tf_prefix" value="$(arg name)"/>
</node>
from kobuki_desktop.
I just tried the gazebo_concert example in the rocon_tutorials repository and found that the error I describe above does not occur. My previous comment is motivated by an example that does not involve rocon. I am now investigating why the behavior is different.
from kobuki_desktop.
Related Issues (20)
- Fix ABI/API breakages coming with Gazebo 2.0 HOT 3
- boost::shared_*_cast are deprecated, removed in boost 1.53 HOT 2
- fails to build with newer boost versions HOT 9
- rosdistro is missing source info HOT 5
- Add queue_size for publishers. HOT 1
- [kobuki_qtestsuite] rqt_plot api changes HOT 2
- Replace license text with a link to the license file
- Unused spin() function in Kobuki gazebo plugin
- Multi-Gazebo Kobukis not updating orientations HOT 15
- Kobuki Gazebo5 plugin is not working HOT 2
- Compiling error about c++11 support at ARM HOT 3
- Kobuki wheels sliding in Gazebo7 [kinetic]
- kobuki_gazebo not compiling after gazebo_ros_pkgs cleanup HOT 10
- /bin/sh: 1: pyrcc5: not found HOT 1
- Pyrcc5: not found HOT 4
- Problem of arm+kobuki in gazebo HOT 1
- Branch for upgrading to Melodic HOT 1
- Wheel drop sensor data not exposed in simulation HOT 7
- Is there gazebo simulation for auto docking? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kobuki_desktop.