ethz-asl / rotors_simulator

RotorS is a UAV gazebo simulator
1.21k stars 757 forks source link

Mav with Keyboard Launch #472

Open weemanlittle opened 6 years ago

weemanlittle commented 6 years ago

Hello! I have set up the RotorS simulator in an attempt to run the mav_with_keyboard.launch. I have followed the tutorials to set up RotorS and to download python-uinput. The Virtual RC Joystick works and reacts with the keyboard inputs but the drone does not fly, any possible fixes?

image

vkpankov commented 6 years ago

@weemanlittle, Hello! I have the same problem.

saikrn112 commented 6 years ago

Did you unpause the gazebo simulation? By default it starts with the paused mode, try unpausing it using rosservice call gazebo/unpause_physics

vkpankov commented 6 years ago

It works now after remapping device and topic /joy->/firefly/joy But immediately after launch mav flies in one direction, and it is unclear how to control it.

weemanlittle commented 6 years ago

@saikrn112 Yes, the physics has been unpaused using the rosservice call. As you can see in the image the command worked but the drone does not react to the keyboard inputs. I have not tried what @vkpankov has done but it seems like that did not fix it.

qsnld commented 6 years ago

@vkpankov ,hello! I have the same problem. I can't control it. It just circles. Did you fix it?

XuanTr commented 5 years ago

Hello, i have the same problem. Digged into the source code, i find that joystick event (pkg: rotors_joystick_interface) is not trigger. I don't know why. I try to fix without success.

I can run the rotors_joystick_interface joy_node as separated node and publish manually Joy messages, it trigger the joystick's events. But when i try it using file launch, it stop to firing the event.

Maybe it's a problem of ros can not trigger callback when using file launch Anyone have suggestion ?

XuanTr commented 5 years ago

I see the problem here, Joystick opened is js0, but not is key-joystick, for my case i add this line to group ns. <rosparam param="joy_node/dev">/dev/input/js4</rosparam> Add this line to launch file, it working now.

paul218 commented 5 years ago

It works now after remapping device and topic /joy->/firefly/joy But immediately after launch mav flies in one direction, and it is unclear how to control it.

Hi , i begin witht rotors, i have the same problem, how can you resolve the problem ???

tooHotSpot commented 4 years ago

@XuanTr Thanks, launched the drone, but with js1 number

ayhangultekin commented 3 years ago

@tooHotSpot @XuanTr i have same problem there is no jo file dev/input

and which launch file must i add this /dev/input/js4 line

thank you