Code Monkey home page Code Monkey logo

Comments (10)

ataffanel avatar ataffanel commented on August 22, 2024

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.

binxxx avatar binxxx commented on August 22, 2024

@ataffanel

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.

ataffanel avatar ataffanel commented on August 22, 2024

@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.

binxxx avatar binxxx commented on August 22, 2024

@ataffanel Thanks. That actually clarifies my confusion.

from crazyflie_ros.

binxxx avatar binxxx commented on August 22, 2024

@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.

ataffanel avatar ataffanel commented on August 22, 2024

@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.

binxxx avatar binxxx commented on August 22, 2024

@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.

ataffanel avatar ataffanel commented on August 22, 2024

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.

binxxx avatar binxxx commented on August 22, 2024

@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.

binxxx avatar binxxx commented on August 22, 2024

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)

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.