Code: Select all
roslaunch crazyflie_demo teleop_ps3.launch uri:=radio://0/20/2M/0xE7E7E7E701
Internally, std::sscanf is used for parsing, so perhaps the behavior of that is not well defined. Which OS (version)/compiler are you using?
Code: Select all
roslaunch crazyflie_demo teleop_ps3.launch uri:=radio://0/20/2M/0xE7E7E7E701
and compilers:Ubuntu 14.04.3 LTS
The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /tmp/catkin_test/devel
-- Using CMAKE_PREFIX_PATH: /home/jan/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/jan/catkin_ws/devel;/opt/ros/indigo
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /tmp/catkin_test/build/test_results
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.14
-- BUILD_SHARED_LIBS is on
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/catkin_test/build
The address becomes:success = std::sscanf(link_uri.c_str(), "radio://%d/%d/%d%c/%lx",...
Radio Address:: 4294967295
print I added to crazyflie.cppsuccess = std::sscanf(link_uri.c_str(), "radio://%d/%d/%d%c/%llx",...
Which corresponds to:Succes :: 1 LenSS :: 5 Vals: 0 20 2 M 996028180225
Though there is still no connection.INFO:cflib.crazyflie.mem:{'radio_channel': 20, 'version': 1, 'pitch_trim': 0.0, 'radio_speed': 2, 'roll_trim': 0.0, 'radio_address': 996028180225}
in Crazyflie.cppsuccess = std::sscanf(link_uri.c_str(), "radio://%d/%d/%d%c/%llx",
But I received an error running the server, when using the requestBranch:roslaunch crazyflie_demo teleop_ps3.launch uri:=radio://0/20/2M/E7E7E7E701
process[rqt_plot3-9]: started with pid [14403]
terminate called after throwing an instance of 'std::runtime_error'
what(): timeout
[INFO] [WallTime: 1477037924.979081] found update_params service
[INFO] [WallTime: 1477037924.979316] waiting for emergency service
[INFO] [WallTime: 1477037924.980327] found emergency service
[crazyflie_server-2] process has died [pid 14280, exit code -6, cmd /home/jan/catkin_ws/devel/lib/crazyflie_driver/crazyflie_server __name:=crazyflie_server __log:=/home/jan/.ros/log/fb116282-9766-11e6-b95c-18a90517f873/crazyflie_server-2.log].
log file: /home/jan/.ros/log/fb116282-9766-11e6-b95c-18a90517f873/crazyflie_server-2*.log
Also,check_vrpn_cookie(): VRPN Note: minor version number doesn't match: (prefer 'vrpn: ver. 07.33', got 'vrpn: ver. 07.20 0'). This is not normally a problem.
[ INFO] [1477135386.922091971]: Connection established
[crazyflie_server-2] process has died [pid 7136, exit code -6, cmd /home/jan/catkin_ws/devel/lib/crazyflie_driver/crazyflie_server __name:=crazyflie_server __log:=/home/jan/.ros/log/e662a0ba-9849-11e6-b9ff-18a90517f873/crazyflie_server-2.log].
log file: /home/jan/.ros/log/e662a0ba-9849-11e6-b9ff-18a90517f873/crazyflie_server-2*.log
[crazyflie2/crazyflie_add-10] process has finished cleanly