Git Product home page Git Product logo

Comments (6)

welcome avatar welcome commented on September 27, 2024

Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!

from crazys.

dingthe4th avatar dingthe4th commented on September 27, 2024

Hi! Think of my 'answers' with a grain of salt, I am no expert regarding this repo. I am just someone who used this repo recently as well.

For Issue 1, you publish the motor speed to /crazyflie/command/motor_speed. I used the Matlab version of this repo, so I am not entirely sure how to publish
via script, but in Matlab, /crazyflie/command/motor_speed needs input from mav_msgs/Actuators and Propellers Angular Velocities (4) from Omegas (motor speed), see Fig. 11 (p.22) of the documentation that you refer to.
As for the units, I already forgot but I think it's in the docu as well.

As for Issue 2, I think it's correct as maybe the ones showed in Gazebo is rounded-up to 0.XX significant digits? Not entirely sure.

If you wait for a bit, your issues maybe resolved by the author of this repo, good luck!

from crazys.

wonggwan avatar wonggwan commented on September 27, 2024

Update for Issue 1 regarding the motor speed:

I found that the /CrazyS/src/CrazyFlie/rotors_control/src/nodes/roll_pitch_yawrate_thrust_crazyflie_node.cpp is also publishing some sort of motor speed commands to gazebo apart from the /crazyflie2/command/motor_speed one, what should we do about this? E.g. does these two node interfere each other during simulation in gazebo?

from crazys.

wonggwan avatar wonggwan commented on September 27, 2024

Hi! Think of my 'answers' with a grain of salt, I am no expert regarding this repo. I am just someone who used this repo recently as well.

For Issue 1, you publish the motor speed to /crazyflie/command/motor_speed. I used the Matlab version of this repo, so I am not entirely sure how to publish via script, but in Matlab, /crazyflie/command/motor_speed needs input from mav_msgs/Actuators and Propellers Angular Velocities (4) from Omegas (motor speed), see Fig. 11 (p.22) of the documentation that you refer to. As for the units, I already forgot but I think it's in the docu as well.

As for Issue 2, I think it's correct as maybe the ones showed in Gazebo is rounded-up to 0.XX significant digits? Not entirely sure.

If you wait for a bit, your issues maybe resolved by the author of this repo, good luck!

Hi! Thanks for the help!

For Issue 1, now I also agree with you that we should publish the motor speed to the /crazyflie2/command/motor_speed, but as my comments above mentioned, there is one more node named as /CrazyS/src/CrazyFlie/rotors_control/src/nodes/roll_pitch_yawrate_thrust_crazyflie_node.cpp that is also publishing something towards the same topic, so I am not sure how is this affect my result.

As for Issue 2, since the drone is too light-weighted (roughly 30 grams), so any small change in the value will result in a very huge change in the calculation result. Since I am trying to use pure math calculation to 'simulate' how the drone fly, so I think the numbers will be crucial to the result.

from crazys.

gsilano avatar gsilano commented on September 27, 2024

Hi wonggwan! Glad to hear from you that you found my work helpful. Here are my answers:

  • Motor speeds are expressed in radians per second [rad/s]. If you want to control the drone, without using the provided controller, just run roslaunch rotors_gazebo crazyflie2_without_controller.launch. Then, your code should publish on the /crazyflie2/gazebo/command/motor_speed topic.

  • ROS Messages are defined in the mav_msgs repository. Specifically, here you can find the definition of Actuators. You can find the maximum angular velocity in the the crazyflie2_base.xacro and crazyflie2_forster.xacro files. Since I have never tested the simulator with the Crazyflie, comparing the behaviors, I suggest you find your own parameters or rely on those in Forster's thesis.

I hope this helps. If not, let me know.

from crazys.

wonggwan avatar wonggwan commented on September 27, 2024

Hi wonggwan! Glad to hear from you that you found my work helpful. Here are my answers:

  • Motor speeds are expressed in radians per second [rad/s]. If you want to control the drone, without using the provided controller, just run roslaunch rotors_gazebo crazyflie2_without_controller.launch. Then, your code should publish on the /crazyflie2/gazebo/command/motor_speed topic.
  • ROS Messages are defined in the mav_msgs repository. Specifically, here you can find the definition of Actuators. You can find the maximum angular velocity in the the crazyflie2_base.xacro and crazyflie2_forster.xacro files. Since I have never tested the simulator with the Crazyflie, comparing the behaviors, I suggest you find your own parameters or rely on those in Forster's thesis.

I hope this helps. If not, let me know.

Thank you so much for your help! I think that solves my current problem! Closing this issue now:)

from crazys.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.