Comments (6)
Thanks for opening your first issue here! Make sure that no other issues on the same topic have already been opened!
from crazys.
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.
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.
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 frommav_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.
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 thecrazyflie2_base.xacro
andcrazyflie2_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.
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 thecrazyflie2_base.xacro
andcrazyflie2_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)
- opticalFlow.pb.h: HOT 2
- Unrecognized message type mav_msgs/Actuators. HOT 7
- Noetic Controller Package HOT 4
- rotors_gazebo_plugins:make error HOT 12
- Is it possible to control the acceleration and rpm of individual rotors, there Thrust ? HOT 4
- Possibility to do trajectory tracking instead of timed waypoints ? HOT 1
- Extending the model with Gazebo Plugins ? HOT 1
- Extending the model HOT 1
- overactuated hexacopter to quardcopter HOT 7
- Adding a custom MAV HOT 6
- Catkin Build Issues HOT 5
- Quadcopter not flying HOT 2
- Leap Motion Integration HOT 4
- using the packages with ros noetic HOT 5
- Trouble with crazyflie2 hovering example. [Ubuntu 18.04, ROS Melodic, Gazebo 9] HOT 22
- name 'namespace' is not defined HOT 2
- Missing blades after using my own controller HOT 13
- Is it possible to use CrazyS at the same time with the real crazyflie? HOT 2
- Is it possible to forcefully stop the drone/s when it reached a target location? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crazys.