allenh1 / p2os

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

How to launch it #41

Closed grafoteka closed 8 years ago

grafoteka commented 8 years ago

Hi! I'm trying to use this package with a Pioneer 3AT with ROS Hydro.

The problem is that I don't know exactly how to move my robot physically. I launch the packages _driver and _teleop_joy.

If I read some topics the joystick is sending values, but my robot doesn't move.

What I'm doing wrong?

Thank you! Regards, Jorge

allenh1 commented 8 years ago

Hm. Did you enable the motors?

rostopic pub /cmd_motor_state p2os_driver/MotorState 1

Is the easiest way to do it.

allenh1 commented 8 years ago

There is now a launch file in the driver.

grafoteka commented 8 years ago

Thank you @allenh1 it worked with rostopic pub

keimura commented 7 years ago

So I'm having the same issue with the motors not enabling... I used the command rostopic pub /cmd_motor_state p2os_msgs/MotorState 1 because when I used the command you suggested above it gave me an invalid eror message type error. But I still don't have any control when launching teleop_keyboard.launch.

allenh1 commented 7 years ago

@keimura do you have the p2os_msgs package installed?

keimura commented 7 years ago

If you're talking about the p2os_msgs folder that was part of the master branch then yes. I hope what I said made sense...

allenh1 commented 7 years ago

Are you running an Ubuntu system? Because you can always just apt-get install it.

$ sudo apt-get install ros-lunar-p2os*

(I just want to eliminate any environment problems before we look down other avenues).

Also, could I get the exact output?

keimura commented 7 years ago

I'm sorry it turns out it was a hardware issue with the pioneer I was using. The code works beautifully.

Thank you for the quick replys

allenh1 commented 7 years ago

Glad to hear it! I can close this then?

allenh1 commented 7 years ago

Wait -- nevermind... XD