Ask Your Question
0

how to define odometer for invidual turtlebots??

asked 2015-04-11 00:26:18 -0500

atis gravatar image

in a simulation where multiple turtlebots are employed, can each turtlebot have individual odometer??? Although i can see the odometry information in gazebo by clicking on individual robots, i need the information inside my program...(i'm using hydro) thanking you....

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-04-11 09:20:16 -0500

aak2166 gravatar image

You must push down the nodes publishing odometry data into their own namespaces.

It sounds to me that you have two turtlebots. Let's call them turtle1 and turtle2. They are both publishing odometry data to the same topic. Let's call that topic "odom" in the global namespace /odom. What you want is each turtlebot to publish on that topic in its own namespace. /turtle1/odom and /turtle2/odom, respectively.

So in your launch file do something to the effect of:

 <node ns="turtle1" name="odom_pub_turtle1" pkg="your_package" type="your_node" />
 <node ns="turtle2" name="odom_pub_turtle1" pkg="your_package" type="your_node" />
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-04-11 00:26:18 -0500

Seen: 187 times

Last updated: Apr 11 '15