How to set the dimensions of the initial pose array
The initial pose array is really much bigger than it needs to be. How do I change it's initial dimensions?
Comments


ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
The initial pose array is really much bigger than it needs to be. How do I change it's initial dimensions?
From looking at the code, AMCL sizes the pose array in the "particlecloud" message to be the size of the number of guesses it currently has for the robot's pose. There's no way to change its initial dimensions. If you just want the current pose of the robot displayed in rviz, you can enable TF frames and look at the "base_link" frame relative to the "map" frame. The "particlecloud" message, provides a visualization that helps give insight into the particle filter AMCL uses internally.
The dimensions of the initial particle cloud should be dependent on the covariance of the initial pose estimate. Rviz won't let you change that value, but you should be able to publish it manually and try out different values for the covariance matrix until you get the initial spread you want. For example code of publishing the initial pose estimate programmatically, se https://github.com/cwru-robotics/cwru-ros-pkg/blob/master/cwru_tour_guide/tour_guide_executive/src/initial_pose_setup.py .
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-04-16 21:37:34 -0500
Seen: 1,620 times
Last updated: Apr 18 '11
Localization with layered costmaps
ICP-based motion model for AMCL
i want to get the initial pose in x,y,theta coordinates of turtlebot in gazebo [closed]
Trying to Update Pose of HectorSLAM
How to change the array size of LaserScan?
How can I get the current pose of the turtlebot within a rosjava node?