Closed kenisvery closed 7 years ago
source
ed the setup.bash
file within Bebop's workspace?yes, i sourced the setup.bash every time i run the launch file in the bebop_ws.
`cmake_minimum_required(VERSION 2.8) project(bebop_tutorials)
find_package(catkin REQUIRED) catkin_package()
install(PROGRAMS src/drone_controller.py
src/drone_status.py
src/drone_video_display.py
src/joystick_controller.py
src/keyboard_controller.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch )`
`
It's hard for me to follow what you've pasted.
You can also use Questions - ROS Answers: Open Source Q&A Forum forum to post this type of questions. Please use the tag: bebop_autonomy
.
Hello, @kenisvery Have you made any progress in this effort? In the terminal output above, the program was crashing because the bebop_autonomy package was not found. This is because 'bebop_autonomy' is a metapackage. When using the messages from the bebop_autonomy package you should make your package dependent on the bebop_msgs package. Please let us know if this helps.
I also noticed that in the dronevideodisplay code, you have imported a non-existing message 'from bebop_autonomy.msg import Navdata.' Please see http://bebop-autonomy.readthedocs.io/en/latest/reading.html#states-aka-navdata describing that the bebop sdk does not publish to a single topic named navdata anymore. Thanks.
@kenisvery closing this ticket due to inactivity. Please feel free to re-open it if you have any updates.
install these packages sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control sudo apt-get install ros-kinetic-gazebo-ros-pkgs
if you got an error
Trying to run keyboard controller with bebop autonomy but error occurred.
kenisvery@kenisvery-Sensei:~/bebop_ws$ roslaunch bebop_tutorials keyboard_controller.launch ... logging to /home/kenisvery/.ros/log/ee4ea42c-d1c4-11e6-94b8-0800275ad713/roslaunch-kenisvery-Sensei-15852.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://kenisvery-Sensei:33962/
SUMMARY
CLEAR PARAMETERS
PARAMETERS
NODES / bebop_driver (bebop_autonomy/bebop_driver) keyboard_controller (bebop_tutorials/keyboard_controller.py)
auto-starting new master process[master]: started with pid [15864] ROS_MASTER_URI=http://localhost:11311
setting /run_id to ee4ea42c-d1c4-11e6-94b8-0800275ad713 process[rosout-1]: started with pid [15877] started core service [/rosout] ERROR: cannot launch node of type [bebop_autonomy/bebop_driver]: bebop_autonomy ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/home/kenisvery/bebop_ws/src ROS path [2]=/home/kenisvery/catkin_ws/src ROS path [3]=/opt/ros/indigo/share ROS path [4]=/opt/ros/indigo/stacks process[keyboard_controller-3]: started with pid [15889] Traceback (most recent call last): File "/home/kenisvery/bebop_ws/src/bebop_tutorials/src/keyboard_controller.py", line 9, in
import roslib; roslib.load_manifest('bebop_tutorials')
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
sys.path = _generate_python_path(package_name, _rospack) + sys.path
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 98, in _generate_python_path
packages = get_depends(pkg, rospack)
File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 51, in get_depends
vals = rospack.get_depends(package, implicit=True)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 237, in get_depends
s.update(self.get_depends(p, implicit))
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 231, in get_depends
names = [p.name for p in self.get_manifest(name).depends]
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest
return self._load_manifest(name)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest
retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self)
File "/usr/lib/python2.7/dist-packages/rospkg/rospack.py", line 200, in get_path
raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: bebop_autonomy
ROS path [0]=/opt/ros/indigo/share/ros
ROS path [1]=/home/kenisvery/bebop_ws/src
ROS path [2]=/home/kenisvery/catkin_ws/src
ROS path [3]=/opt/ros/indigo/share
ROS path [4]=/opt/ros/indigo/stacks
================================================================================REQUIRED process [keyboard_controller-3] has died!
process has died [pid 15889, exit code 1, cmd /home/kenisvery/bebop_ws/src/bebop_tutorials/src/keyboard_controller.py __name:=keyboard_controller __log:=/home/kenisvery/.ros/log/ee4ea42c-d1c4-11e6-94b8-0800275ad713/keyboard_controller-3.log].
log file: /home/kenisvery/.ros/log/ee4ea42c-d1c4-11e6-94b8-0800275ad713/keyboard_controller-3*.log
Initiating shutdown!
[keyboard_controller-3] killing on exit [rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done
Package.xml -->
CMakeLists.txt -->
cmake_minimum_required(VERSION 2.8) project(bebop_tutorials)
find_package(catkin REQUIRED) catkin_package()
catkin_python_setup()
install(PROGRAMS src/drone_controller.py
src/drone_status.py
src/drone_video_display.py
src/joystick_controller.py
src/keyboard_controller.py DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} )
install(DIRECTORY launch/ DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch )