Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS 2 Tutorials-Teleoperation keyboard #307

Closed
ntukenmez3 opened this issue Oct 17, 2023 · 8 comments · Fixed by #309
Closed

ROS 2 Tutorials-Teleoperation keyboard #307

ntukenmez3 opened this issue Oct 17, 2023 · 8 comments · Fixed by #309

Comments

@ntukenmez3
Copy link

ntukenmez3 commented Oct 17, 2023

I set up all configs and the related parts. Also, I've not gotten any errors but the cf is not getting the keyboard command for take-off. I added the terminal outputs associated with the related parts below. What could be the reason, thanks.

first command:

ros2 launch crazyflie_examples keyboard_velmux_launch.py

terminal output:

ntukenmez3@ae-icps-407120:~/Documents/ros2_ws/src$ ros2 launch crazyflie_examples keyboard_velmux_launch.py 
[INFO] [launch]: All log files can be found below /home/ntukenmez3/.ros/log/2023-10-17-17-40-13-213907-ae-icps-407120-3879157
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [crazyflie_server.py-1]: process started with pid [3879158]
[INFO] [vel_mux.py-2]: process started with pid [3879160]
[crazyflie_server.py-1] [INFO] [1697578815.432539570] [crazyflie_server]:  radio://0/80/2M/E7E7E7E7E7 is fully connected!
[crazyflie_server.py-1] [INFO] [1697578815.432841106] [crazyflie_server]: All Crazyflies are fully connected!
[crazyflie_server.py-1] [INFO] [1697578815.437555995] [crazyflie_server]:  radio://0/80/2M/E7E7E7E7E7: commander.enHighLevel is set to 1
[crazyflie_server.py-1] [INFO] [1697578815.459489481] [crazyflie_server]:  radio://0/80/2M/E7E7E7E7E7: locSrv.extPosStdDev is set to 0.001
[crazyflie_server.py-1] [INFO] [1697578815.459974424] [crazyflie_server]:  radio://0/80/2M/E7E7E7E7E7: locSrv.extQuatStdDev is set to 0.05
[crazyflie_server.py-1] [INFO] [1697578815.476950645] [crazyflie_server]:  radio://0/80/2M/E7E7E7E7E7: stabilizer.controller is set to 1
[crazyflie_server.py-1] [INFO] [1697578815.477449967] [crazyflie_server]:  radio://0/80/2M/E7E7E7E7E7: stabilizer.estimator is set to 2
[crazyflie_server.py-1] [INFO] [1697578815.483605848] [crazyflie_server]: All Crazyflies parameters are initialized
[crazyflie_server.py-1] [INFO] [1697578815.485278574] [crazyflie_server]: All Crazyflies loggging are initialized

second command (on the second terminal):

ros2 run teleop_twist_keyboard telop_twist_keyboard

terminal output:

ntukenmez3@ae-icps-407120:~/Documents/ros2_ws/src$ ros2 run teleop_twist_keyboard teleop_twist_keyboard 

This node takes keypresses from the keyboard and publishes them
as Twist messages. It works best with a US keyboard layout.
---------------------------
Moving around:
   u    i    o
   j    k    l
   m    ,    .

For Holonomic mode (strafing), hold down the shift key:
---------------------------
   U    I    O
   J    K    L
   M    <    >

t : up (+z)
b : down (-z)

anything else : stop

q/z : increase/decrease max speeds by 10%
w/x : increase/decrease only linear speed by 10%
e/c : increase/decrease only angular speed by 10%

CTRL-C to quit

currently:	speed 0.5	turn 1.0 


@knmcguire
Copy link
Collaborator

Hi! I can confirm this! it seems that the vel_mux script is not starting up from the launch file so I'll need to check why that is.

@knmcguire
Copy link
Collaborator

aha found it pretty quickly. You've got to change the crazyflie id here.

I did find, that if you take off and land, you can't take off again. So that is a different issue. For now you've got to restart the crazyflie.

@ntukenmez3
Copy link
Author

aha found it pretty quickly. You've got to change the crazyflie id here.

I did find, that if you take off and land, you can't take off again. So that is a different issue. For now you've got to restart the crazyflie.

What could be the reason for this issue, I mean after the first take-off and land motion, why cannot send a take-off command?

@ntukenmez3
Copy link
Author

After the crazyflie id was changed as "cf1-->c231", it worked pretty well.

@knmcguire
Copy link
Collaborator

knmcguire commented Oct 19, 2023

The not taking off after a land, it's probably due to the changes in the latest crazyflie firmware so if you have an older release of the firmware it should work fine.

@ntukenmez3
Copy link
Author

I tried it, but it did not work.

@knmcguire
Copy link
Collaborator

ahh oke then you have the latest release. No worries, I'm working on it :) #309

with the current situation, you just have to restart the crazyflie everytime you want it to take off again...

@knmcguire
Copy link
Collaborator

I'm converting this to a dicussion as this wasn't really an error but a support question. For the later issue there is already an issue made #308

@IMRCLab IMRCLab locked and limited conversation to collaborators Oct 19, 2023
@knmcguire knmcguire converted this issue into discussion #311 Oct 19, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants