ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

SJ亮's profile - activity

2017-10-23 12:01:54 -0500 received badge  Famous Question (source)
2017-04-11 16:56:12 -0500 received badge  Notable Question (source)
2017-04-11 05:58:00 -0500 received badge  Enthusiast
2017-01-10 19:29:20 -0500 received badge  Popular Question (source)
2016-12-15 19:27:16 -0500 asked a question How to call service global_localization

I'm learning navigation ,I meet a question. how to call service global_localization. Because now the robot doesn't know its
position when the power switch is on ,I have to put it in the origin of map.if not ,the robot will deem that the position where when the power switch is on is the origin of map .Then the robot can't reach the accurate position .So ,I want to write a c++ code to make the robot know its position when the power switch is on .I have found some information ,some argue that in RVIZ click the position estimated .Some argue that call service global_localization ,but this call in the terminal input "rosservice call /global_localization".These are not that i want to use .Maybe there are other solutions to my demand. Please help me to analyze it .Thanks .

Now,I have wrote a node to call service global_localization.However,some problems appeared .sometime the robot warn "Unable to get starting pose of robot, unable to create global plan" ,then the robot can't move .Sometime the service call failed .I don't know why ?