allenh1 / p2os

P2OS ROS driver for Groovy and later.
http://wiki.ros.org/p2os-purdue
27 stars 38 forks source link

Possible to run only with gazebo? #52

Closed grafoteka closed 5 years ago

grafoteka commented 6 years ago

Hi! I have download the master branch for ROS Kinetic. I am trying to launch it in a normal PC, not in the Robot. When I try to launch p2os_urdf pioneer3at.gazebo.launch I have the next error:

(gzclient:23986): IBUS-WARNING **: Unable to connect to ibus: Could not connect: Connection refused Error [Param.cc:451] Unable to set value [-nan -nan -nan] for key[size] gzclient: /build/ogre-1.9-mqY1wq/ogre-1.9-1.9.0+dfsg1/OgreMain/src/OgreNode.cpp:630: virtual void Ogre::Node::setScale(const Ogre::Vector3&): Assertion!inScale.isNaN() && "Invalid vector supplied as parameter"' failed. Aborted (core dumped) [gazebo_gui-4] process has died [pid 23928, exit code 134, cmd /opt/ros/kinetic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/jorge/.ros/log/0adda5f4-0c19-11e8-9986-4ccc6a639f77/gazebo_gui-4.log]. log file: /home/jorge/.ros/log/0adda5f4-0c19-11e8-9986-4ccc6a639f77/gazebo_gui-4*.log ` I think that this error is because is looking for the motors controllers.

If I launch p2os_urdf pioneer3at_urdf.launch after a while, Gazebo crashes (but it never shows the logo of Gazebo or the world, nothing appears)

So, my question is if it is possible to launch a simulation in Gazebo and control the pioneer with a joystick.

Thank you

allenh1 commented 6 years ago

Hey! It should definitely be possible. Before we proceed, could you please tell me which p2os_urdf version you have installed and which gazebo version you have? I'm also assuming you're on Ubuntu, but, if not, let me know!

grafoteka commented 6 years ago

Hi @allenh1! I'am using Ubuntu 16.04 with ROS Kinetic and Gazebo 7. I downloaded the p2os_urdf master branch.

allenh1 commented 6 years ago

@grafoteka have you tried the pioneer3dx launchfile? Just curious if that one works for you. I haven't tested the at one in a while, and cannot at the moment.

Once I get around to it, I'll give the 3AT a go.

grafoteka commented 6 years ago

@allenh1 I have launch p2os_urdf pioneer3dx.gazebo.launch and it launches correctly gazebo and the pioneer. If I launch p2os_urdf pioneer3dx_urdf.launch nothing happens.

allenh1 commented 5 years ago

@grafoteka Hey, just figured I'd poke you about this. Doing some cleanup, and wanted to know if this issue maybe be closed?

grafoteka commented 5 years ago

Hi @allenh1 , finally I could it make it work. But you can close it.

allenh1 commented 5 years ago

Great! Thanks for the fast response!