Giter Site home page Giter Site logo

Comments (5)

whoenig avatar whoenig commented on July 18, 2024

It looks like your logging cache might be stale. Please delete your log*.csv files in your ~/.ros folder and try again.

from crazyflie_ros.

ddwy avatar ddwy commented on July 18, 2024

It looks like your logging cache might be stale. Please delete your log*.csv files in your ~/.ros folder and try again.

I've tried it once,but the following errors will happen.

setting /run_id to 7b5af434-b388-11eb-9be4-000c299d8ef1
process[rosout-1]: started with pid [6755]
started core service [/rosout]
process[crazyflie_server-2]: started with pid [6772]
process[crazyflie/crazyflie_add-3]: started with pid [6774]
process[crazyflie/joy-4]: started with pid [6781]
process[crazyflie/quadrotor_teleop-5]: started with pid [6808]
process[crazyflie/crazyflie_demo_controller-6]: started with pid [6814]
process[rviz-7]: started with pid [6815]
[ INFO] [1620868434.054842522]: wait_for_service /add_crazyflie
[ INFO] [1620868434.059550461]: found /add_crazyflie
[ INFO] [1620868434.074709192]: Adding radio://0/100/2M/E7E7E7E701 as crazyflie with trim(0.000000, 0.000000). Logging: 1, Parameters: 1, Use ROS time: 1
[ERROR] [1620868434.134494574]: Couldn't open joystick force feedback!
[ INFO] [1620868434.134563865]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
[ INFO] [1620868434.219783275]: Requesting parameters...
[ INFO] [1620868434.230003728]: Params: 228
[crazyflie/crazyflie_add-3] process has finished cleanly
log file: /home/ubuntu/.ros/log/7b5af434-b388-11eb-9be4-000c299d8ef1/crazyflie-crazyflie_add-3*.log
[ INFO] [1620868435.142632142]: Requesting Logging variables...
[ INFO] [1620868435.146542661]: Log: 465
[INFO] [1620868435.261383]: found update_params service
[INFO] [1620868435.261684]: waiting for emergency service
[INFO] [1620868435.263056]: found emergency service
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not find acc.x in log toc!
[crazyflie_server-2] process has died [pid 6772, exit code -6, cmd /home/ubuntu/ros_ws/devel/lib/crazyflie_driver/crazyflie_server __name:=crazyflie_server __log:=/home/ubuntu/.ros/log/7b5af434-b388-11eb-9be4-000c299d8ef1/crazyflie_server-2.log].
log file: /home/ubuntu/.ros/log/7b5af434-b388-11eb-9be4-000c299d8ef1/crazyflie_server-2
.log
*

from crazyflie_ros.

whoenig avatar whoenig commented on July 18, 2024

Can you run rosrun crazyflie_tool listLogVariables --uri radio://0/100/2M/E7E7E7E701 and check if acc.x is listed there?

from crazyflie_ros.

Shirleytyf avatar Shirleytyf commented on July 18, 2024

when I run rosrun crazyflie_tools listLogVariables --uri radio://0/80/2M/0xE7E7E7E7 , it shows timeout, when I run rosrun crazyflie_tools listLogVariables acc.x is listed.

from crazyflie_ros.

Shirleytyf avatar Shirleytyf commented on July 18, 2024

I renumbered it.When I run rosrun crazyflie_tools listLogVariables --uri radio://0/80/2M/0xE7E7E7E7E1 acc.x and acc.y are listed.
During running, the following error occurred:
roslaunch crazyflie_demo teleop_xbox360.launch uri:=radio://0/80/2M/E7E7E7E7E1

PARAMETERS

  • /crazyflie/crazyflie_add/enable_logging: True
  • /crazyflie/crazyflie_add/enable_logging_battery: True
  • /crazyflie/crazyflie_add/enable_logging_imu: True
  • /crazyflie/crazyflie_add/enable_logging_magnetic_field: True
  • /crazyflie/crazyflie_add/enable_logging_packets: True
  • /crazyflie/crazyflie_add/enable_logging_pose: False
  • /crazyflie/crazyflie_add/enable_logging_pressure: True
  • /crazyflie/crazyflie_add/enable_logging_temperature: True
  • /crazyflie/crazyflie_add/pitch_trim: 0
  • /crazyflie/crazyflie_add/roll_trim: 0
  • /crazyflie/crazyflie_add/tf_prefix: crazyflie
  • /crazyflie/crazyflie_add/uri: radio://0/80/2M/E...
  • /crazyflie/crazyflie_add/use_ros_time: True
  • /crazyflie/joy/dev: /dev/input/js0
  • /crazyflie/quadrotor_teleop/x_axis: 5
  • /crazyflie/quadrotor_teleop/x_velocity_max: 30
  • /crazyflie/quadrotor_teleop/y_axis: 4
  • /crazyflie/quadrotor_teleop/y_velocity_max: -30
  • /crazyflie/quadrotor_teleop/yaw_axis: 1
  • /crazyflie/quadrotor_teleop/yaw_velocity_max: -200
  • /crazyflie/quadrotor_teleop/z_axis: 2
  • /crazyflie/quadrotor_teleop/z_velocity_max: 60000
  • /rosdistro: melodic
  • /rosversion: 1.14.10

NODES
/
crazyflie_server (crazyflie_driver/crazyflie_server)
rqt_plot2 (rqt_plot/rqt_plot)
rqt_plot3 (rqt_plot/rqt_plot)
rviz (rviz/rviz)
/crazyflie/
crazyflie_add (crazyflie_driver/crazyflie_add)
crazyflie_demo_controller (crazyflie_demo/controller.py)
joy (joy/joy_node)
quadrotor_teleop (crazyflie_demo/quadrotor_teleop)

auto-starting new master
process[master]: started with pid [20888]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 53425d96-b619-11eb-b269-3cf862e573dd
process[rosout-1]: started with pid [20899]
started core service [/rosout]
process[crazyflie_server-2]: started with pid [20906]
process[crazyflie/crazyflie_add-3]: started with pid [20907]
ERROR: cannot launch node of type [joy/joy_node]: joy
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/ypp/crazyflie_ws/src
ROS path [2]=/opt/ros/melodic/share
process[crazyflie/quadrotor_teleop-5]: started with pid [20913]
process[crazyflie/crazyflie_demo_controller-6]: started with pid [20919]
process[rviz-7]: started with pid [20925]
process[rqt_plot2-8]: started with pid [20926]
[ INFO] [1621150546.170649352]: wait_for_service /add_crazyflie
[ INFO] [1621150546.174141873]: found /add_crazyflie
[ INFO] [1621150546.179627610]: Adding radio://0/80/2M/E7E7E7E7E1 as crazyflie with trim(0.000000, 0.000000). Logging: 1, Parameters: 1, Use ROS time: 1
process[rqt_plot3-9]: started with pid [20927]
[ WARN] [1621150546.309762982]: Received unrequested data for block: 87
[ WARN] [1621150546.311247078]: Received unrequested data for block: 87
[ INFO] [1621150546.312106069]: Requesting parameters...
[ INFO] [1621150546.317560038]: Found variables in cache.
[crazyflie/crazyflie_add-3] process has finished cleanly
log file: /home/ypp/.ros/log/53425d96-b619-11eb-b269-3cf862e573dd/crazyflie-crazyflie_add-3*.log
[ INFO] [1621150546.712558824]: Requesting Logging variables...
[ INFO] [1621150546.715569613]: Found variables in cache.
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not find acc.y in log toc!
[INFO] [1621150546.764116]: found update_params service
[INFO] [1621150546.765897]: waiting for emergency service
[INFO] [1621150546.769599]: found emergency service
[crazyflie_server-2] process has died [pid 20906, exit code -6, cmd /home/ypp/crazyflie_ws/devel/lib/crazyflie_driver/crazyflie_server __name:=crazyflie_server __log:=/home/ypp/.ros/log/53425d96-b619-11eb-b269-3cf862e573dd/crazyflie_server-2.log].
log file: /home/ypp/.ros/log/53425d96-b619-11eb-b269-3cf862e573dd/crazyflie_server-2*.log

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.