filgusto / rosiChallenge-sbai2019

ROSI Challenge repository for the XIV SBAI
https://www.sbai2019.com.br/
GNU General Public License v3.0
17 stars 10 forks source link

Lua runtime error when trying to simulate #3

Closed Matheus3007 closed 5 years ago

Matheus3007 commented 5 years ago

Whenever I try to run the simulation related to the ROSI challenge, vrep never really establishes communication with ROS, so I'm not able to command the robot, instead I only get a runtime error (see bellow)

ROSIRuntimeError

And if I try to take a look at what's going on with Rqt_graph, no nodes seem connected:

Rqt_graphOut

I don't understand what's the issue here, since I've tried following the installation procedures countless times, and I'm positive that there's nothing wrong on that part of things, roscore is also running normally, I even checked to see if the issue was over there, so I came here as some kind of last resort, cause I just have no clue on how to make this work anymore.

filgusto commented 5 years ago

Hi, Matheus. Thank you for your post.

ROS master needs to be running before V-REP is initialized; otherwise, it won't be able to find the core. Adittionally, if you shut down roscore while V-REP is running, you'll need to also restart the simulator to establish the connection.

Check if you are performing correctly those steps. Also, see if you can find this message on V-REP initialization:

image

Please let me know if the problem continues.

Regards.

Matheus3007 commented 5 years ago

I checked if I was running ROS master and V-REP in the correct order as you recommended me to, but unfortunately that was not the issue. Even though I ran roscore before starting V-REP, and left it running as I tried to run the simulation, the error kept appearing.

Also, I was able to find the ROS interface plugin message during the V-REP startup, and it seems to be loading just as it's supposed to:

RosInterfacePluginOk

(By the way, thanks for the quick reply!)

filgusto commented 5 years ago

Ok. I have just seen a small portion of your LUA log on the image you've sent and it looks like the custom ROSI ROS messages were not correctly incorporated to the libv_repExtRosInterface.so. Considering the manual installation instructions of the challenge repository's README.md, be sure if the steps from 10 and on are well implemented. If the problem persists, please send here your LUA error log.

Matheus3007 commented 5 years ago

Well, steps from 10 and on were done properly for sure, I just checked them, and to be sure of it I ran a small test to see if the ROS/V-REP interface was the problem, so I opened up a new scene with a script that published the simulation time to ROS, and it ran alright:

ROSWorkingAlright

This experiment lead me to believe that the problem has something to do with the rosi script itself, not the V-REP/ROS interface, since it doesn't make sense to me that the interface would fail only when trying to run the challenge scenario (I understand I may be wrong here, I'm really not familiar with LUA or V-REP)

Anyway, here's the LUA error log as you asked: LuaErrorLog.txt

Thanks for the help! :)

Matheus3007 commented 5 years ago

Hello again! I'm closing this thread now. I was discussing the issue with my friend @TheoFabris and we managed to figure out a solution, which was simply replacing my libv_repExtRosInterface.so file with his, since he thought the problem was over there because it's virtually one of the only connections between ROS and V-REP. After replacing my file, that for some reason wasn't properly built, with his, everything started working as it should. We haven't figured out exactly what the issue was, but there's the solution. Probably something wrong happend during steps 10 and on, just as you said :)!

Thanks for helping me through this issue!