rosaria failed to connect to robot
Hi,
I want to use the RosAria package in order to send commands and interface with my robot. I have managed to successfully install and build this rosaria package and I have also tested it multiple times on simulation (by using MobileSim by MobileRobots).
Now I want to connect rosaria to the actual robot, Powerbot (a pioneer robot by Adept MobileRobots). I have successfully connected to the robot ONCE by running
rosrun rosaria RosAria _port:=/dev/ttyS0
Then I killed the node (^C) but when I tried to connect to it once again by re-running the same line (above), I got this error:
powerbot67@powerbot67-desktop:~/catkin_ws/src/rosaria$ rosrun rosaria RosAria
[ INFO] [1422444061.117081691]: RosAria: using port: [/dev/ttyS0]
Could not connect to simulator, connecting to robot through serial port /dev/ttyS0.
Syncing 0
No packet.
Syncing 0
No packet.
Trying to close possible old connection
Syncing 0
No packet.
Syncing 0
No packet.
Robot may be connected but not open, trying to dislodge.
Syncing 0
No packet.
Robot may be connected but not open, trying to dislodge.
Syncing 0
No packet.
Could not connect, no robot responding.
Failed to connect to robot.
[ERROR] [1422444067.613784823]: RosAria: ARIA could not connect to robot! (Check ~port parameter is correct, and permissions on port device.)
[FATAL] [1422444067.613882512]: RosAria: ROS node setup failed...
Now $USER is a member of the dialout
group and I'm sure that the robot connection worked because:
(a) I had connected to the robot through rosaria ONCE during the first time and
(b) Before I installed rosaria I was working with the ARIA library directly and everything worked brilliantly.
In the error it is suggesting that I check that ~port parameter is correct, but I'm sure it is since I ran the same command previously.
Can somebody help me understand this please? Thanks!
I have had this problem before a dozen times or so in the past year. A dirty fix that worked for me was to hit the reset button. Then power off the P3AT, and repower P3AT. I may have restarted my GUI computer in one of the steps to regain the connection.
It worked thanks!
remember that you will have to run the sudo chmod command every time you start the robot. You can define the sudo permissions in your launch file for ease.
can you mark it as an answer if it helped you. Thanks
The reset button for Powerbot is in the panel on the top-rear of the robot. Newer firmware it will make periodic beep to indicate that it is still expecting software communication but data has stopped (reset maybe required in this case). Sound can be turned on/off in firmware configuration though.
I cannot connect to pioneer robot using rosaria for several days. Although I was able to connect when I installed first. I tried powering of and turning power on of the robot but nothing changed. I also used restart button that also did not work. can any one help?
@anirban you can either follow the above comments, or check that the port you are using is valid. How are you connecting to rosaria?
I am connecting P3 using a serial cable. I am running the following command line $ rosrun rosaria RosAria _port:=/dev/ttyS2 S2 because I know this port worked well with aria example codes those are provided by Mobile robot. So basically I am using a USB serial converter to connect to the robot.