-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reset robot position and odometry #12
Comments
You can use arrobot_resetpos() to reset the odometry. This resets odometry in MobileSim but also resets the pose stored by ARIA using ArRobot::moveTo(0,0,0); There is also a command to move the simulated real position (true pose) in the simulator, see http://robots.mobilerobots.com/wiki/Command_To_Relocate_(Move)_Robot_In_MobileSim, but there isn't yet a suitable function in the Matlab interface for sending longer/unusual commands like that. You could add an "arrobot_move_sim_pose(x, y, t)" or similar function to the ariac library and to the Matlab mex functions, or I can add it to our todo list for a future version. Reed From: maubegnini <notifications@github.commailto:notifications@github.com> Hi, After a simulation, i need to close MobileSim and open again to do the next simulation, because File->Reset Positions do not reset odometry to 0 0 0. I tried to use arrobot_comand(224) and arrobot_comand(7), but did nothing. Any solution? Thanks! — |
Thanks for the help Reed. To solve the problem i rewrite arrobot_resetpos, changing the comand I also tryied to relpace the moveTo for the relocate code, but it didn`t 2014-11-29 10:01 GMT-02:00 Reed Hedges notifications@github.com:
Mauricio Begnini |
OK, glad you found a solution. If you want to rename it to a new name, you can do so in libariac, then make a new file with the new function in mex-src, then add it to the list of mex functions in makemex.m. There is a difference between the robot odometric position provided by either MobileSim or a real robot, the position stored by ARIA (which is related to the robot odometric pose via a transform which is set by the moveTo() function), and a “true” position of the robot which is only represented in MobileSim. Moving the true pose with SIM_RESET or the command I sent earlier is like picking up the real robot and carrying it to a new place. So you need to change the odometry, the true position, and ARIA’s transformed position. SIM_RESET changes the first two to 0,0,0, and moveTo() changes the last. From: maubegnini [mailto:notifications@github.com] Thanks for the help Reed. To solve the problem i rewrite arrobot_resetpos, changing the comand I also tryied to relpace the moveTo for the relocate code, but it didn`t 2014-11-29 10:01 GMT-02:00 Reed Hedges notifications@github.com:
Mauricio Begnini — |
Thanks for the clarification about the diferent positions Reed. Now I`m 2014-12-01 14:36 GMT-02:00 Reed Hedges notifications@github.com:
Mauricio Begnini |
Hi,
After a simulation, i need to close MobileSim and open again to do the next simulation, because File->Reset Positions do not reset odometry to 0 0 0. I tried to use arrobot_comand(225) and arrobot_comand(7), but did nothing. Any solution?
Thanks!
The text was updated successfully, but these errors were encountered: