Comments (10)
Hi, I can maybe answer about the onboard controller. I have been using this controller bridge to make the Crazyflie internal PID controller controlled like the crazyflie_ros demo controller: https://github.com/bitcraze/lps-ros/blob/master/scripts/crazyflie_controller_bridge.py.
from crazyflie_ros.
Thanks for your response. After reading your code, I'm still confused about how to get the IMU data and get access to internal controller. I could see what Wolfgang did is to calculate the velocity of X,Y,Z,Yaw and then publish these message. While after that, I did not know how the internal controller would get these message. Thanks in advance.
from crazyflie_ros.
@byronxubin My answer was only about how to send setpoint to the internal PID controller. In the context of autonomous flight the velocity is calculated onboard by the state estimator (ie. the kalman filter) I am not aware of any way to send it from ROS to the Crazyflie.
from crazyflie_ros.
@ataffanel Thanks. That actually clarifies my confusion.
from crazyflie_ros.
@ataffanel Sorry for bothering you again. After reading the crazyflie_server.cpp again, I'm still confused at the consequence I met. I noticed that we have a rostopic IMU being published, while nothing is published in real case. I found the parameter for enable_logging_imu
is true. How can I actually publish these data? Thanks a lot.
from crazyflie_ros.
@byronxubin The IMU topic is not required to send setpoint.
I just tested quickly and the imu topic seems to be working the same way it always did:
$ rostopic echo /crazyflie/imu
header:
seq: 36433
stamp:
secs: 1489565981
nsecs: 244978494
frame_id: crazyflie/base_link
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
orientation_covariance: [-1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: 0.00720959527036
y: 0.00054752621949
z: -0.00110738165248
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
x: -0.335517583005
y: 1.64005131215
z: 9.56861816704
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
---
from crazyflie_ros.
@ataffanel Are you just using crazyflie_ros package? When I try to use the same way, there is nothing to be printed. I can see '/crazyflie/imu' topic by using 'rostopic list', but still I can get nothing. Which part do you think might go wrong?
from crazyflie_ros.
I have used this launchfile for the test: https://github.com/bitcraze/lps-ros/blob/master/launch/dwm_loc.launch
Are you sure you are connected to a Crazyflie? Does the M4 LED blinks on Crazyflie and the GREEN LED blinks on Crazyradio?
from crazyflie_ros.
@ataffanel I'm pretty sure about connecting to a Crazyflie. I am using crazyflie_ros package to instruct Crazyflie to track different setpoints. But I cannot get the imu data by using rostopic echo
. I think the connection is correct since I can give command to Crazyflie to take off and land.
from crazyflie_ros.
I finally find that in the launch file, the parameter I give to enable_logging
is False
, I think that's why I cannot get the /crazyflie/imu
data.
from crazyflie_ros.
Related Issues (20)
- Failure to launch crazyflie_server.launch with cf firmware: 2020.06 HOT 3
- Failing to log valid LOG_GROUP ctrltarget (setpoint) HOT 2
- Frames HOT 5
- Issues about hover_vicon.launch HOT 2
- Roscpp Update Params HOT 2
- Logging Pose Fails HOT 5
- Problems with Vicon and Hovering HOT 6
- Advice on how to use the crazyflie server for low level control HOT 2
- Questions on cmd_vel HOT 1
- Cmake error HOT 4
- Reading Ranger Deck Sensor HOT 4
- 运行crazyswarm中的hove_vicon.launch报错,出现terminate called after throwing an instance of 'std::runtime_error' what(): timeout HOT 1
- Could not find <log> in log toc!
- CMake Error HOT 2
- `LIBUSB_ERROR_ACCESS` What should I DO? HOT 2
- teleop_xbox360.launch,error occurred HOT 5
- Problems about test_high_level
- hover_vicon.launch error HOT 1
- vicon_bridge: zero pose and View frame issue
- The velocity of crazyflie
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 crazyflie_ros.