Moving Nao Robot - enable and disable stiffness
Solution found - although do not know how to enable and disable enslave properly
Issue: Using Rviz, without connecting to the actual real Robot, I can run a simulation of the Nao and I can move the Nao within the simulation using my current code.
I want to use the code I have written to move the REAL Nao robot.
When I type in the terminal: "LD_LIBRARY_PATH=~[the actual path] NAO_IP=[the Nao ip address] roslaunch nao_driver nao_driver.launch", the Nao robot says "walker online" - So i assume i have correctly connected to the real Nao Robot.
I make use of "roslaunch nao_description nao_state_publisher.launch" to get the current joint positions of the real nao robot. When I physically move the real nao robot, the rviz representation also moves to the exact positioning.
When I connect to the real Nao and try to move the real Nao using my current code it does not move and neither does the simulation on rviz.. Is there something that I am missing which I need to do in order to move the real Nao?
Thank you :)
Edit: I noticed maybe one possibility is because the robot is not enslaved. http://robocup.bowdoin.edu/public/software/nao/NaoQi/1.10/nao-1.10/doc/site_en/greendoc/beginning_with_nao/enslaving_process.html
Anyone know how to enslave it without using choreographe?
Edit2: I found that it was due to the robot not being enslaved. I used the joypad to enslave the Nao robot - Once enslaved, I could use my code to move the real Nao robot. However once I use the joypad, I don't know how to un-enslave it. So the joints are constantly stiff until I actually manually switch off the Nao Robot.
Does anyone know how to un-enslave the robot once it is enslaved? Also does anyone know any better solutions to enslaving the Nao Robot? - Possibly a ROS Command?
thank you!