Git Product home page Git Product logo

tum_simulator's Introduction

tum_simulator on Indigo

These packages are used to simulate the flying robot Ardrone in ROS environment using gazebo simulator. Totally they are 4 packages. Their functions are descript as below:

  1. cvg_sim_gazebo: contains object models, sensor models, quadrocopter models, flying environment information and individual launch files for each objects and pure environment without any other objects.

  2. cvg_sim_gazebo_plugins: contains gazebo plugins for the quadrocopter model. quadrotor_simple_controller is used to control the robot motion and deliver navigation information, such as: /ardrone/navdata. Others are plugins for sensors in the quadrocopter, such as: IMU sensor, sonar sensor, GPS sensor.

  3. message_to_tf: is a package used to create a ros node, which transfers the ros topic /ground_truth/state to a /tf topic.

  4. cvg_sim_msgs: contains message forms for the simulator.

Some packages are based on the tu-darmstadt-ros-pkg by Stefan Kohlbrecher, TU Darmstadt.

How to install the simulator:

  1. Create a workspace for the simulator

    mkdir -p ~/tum_simulator_ws/src
    cd  ~/tum_simulator_ws/src
    catkin_init_workspace
    
  2. Download dependencies

    git clone https://github.com/AutonomyLab/ardrone_autonomy.git	# The AR.Drone ROS driver
    git clone https://github.com/occomco/tum_simulator.git
    cd ..
    rosdep install --from-paths src --ignore-src --rosdistro indigo -y
    
  3. Build the simulator

    catkin_make
    
  4. Source the environment

    source devel/setup.bash
    

How to run a simulation:

  1. Run a simulation by executing a launch file in cvg_sim_gazebo package:

    roslaunch cvg_sim_gazebo ardrone_testworld.launch
    

tum_simulator's People

Contributors

dougvk avatar icchy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

tum_simulator's Issues

How to connect tum_simulator with a joystick ?

Firstly, thank you so much for this indigo compatible package.

The documentation of official package mentions that it uses PS3 joystick, I am not using exactly PS3 one but another brand instead. It worked well with hector's package before.

Reference: http://wiki.ros.org/tum_simulator

After I tried your indigo compatible package ardrone_joystick, ran rosrun ardrone_joystick ardrone_teleop, the following message is shown.

[ INFO] [1476899665.262726295]: Started ArDrone joystick-Teleop
[ INFO] [1476899665.262783961]: Press and hold L1 for takeoff
[ INFO] [1476899665.262799056]: Press R1 to toggle emergency-state
[ INFO] [1476899665.262809678]: Press 'select' to choose camera
[ INFO] [1476899665.262818833]: Press 'start' to enable/disable the controller

There is no response after I followed the steps above, so what is the correct procedure to get it work ?

how to run the ardrone to get the data

hello,thank you for your work. when i completed the catkin_make ssuccessfully,i want to driver the ardrone but i doubt how to link the ardrone in the simulation atmosphere.

camera config file

Does a calibrated camera config(.cfg) file exist for the ardrone camera in tum simulator? If not how to create one?

CMake Error

When I try to build the simulator, I get the following error,

[ 93%] Built target hector_gazebo_quadrotor_simple_controller
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection timed out

Cloning into 'ardronelib'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Connection timed out

-- Had to git clone more than once:
3 times.

CMake Error at /root/tum_simulator_ws/devel/tmp/ardronelib-gitclone.cmake:40 (message):
Failed to clone repository: 'git://github.com/AutonomyLab/ardronelib.git'

make[2]: *** [/root/tum_simulator_ws/devel/src/ardronelib-stamp/ardronelib-download] Error 1
make[1]: *** [ardrone_autonomy/CMakeFiles/ardronelib.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4!
Invoking "make -j4 -l4" failed

could not get ardrone_navdata

When I try to get the navigation info, while running the simulator, as

The navigation info

rostopic echo /ardrone/navdata

I seem to get the following error in the terminal.

ERROR: Cannot load message class for [ardrone_autonomy/Navdata]. Are your messages built?

I am able to get the sonar height information using,
rostopic echo /sonar_height

Error when catkin_make is run

make[2]: *** [tum_simulator/cvg_sim_gazebo_plugins/CMakeFiles/hector_gazebo_quadrotor_state_controller.dir/src/quadrotor_state_controller.cpp.o] Error 1
make[1]: *** [tum_simulator/cvg_sim_gazebo_plugins/CMakeFiles/hector_gazebo_quadrotor_state_controller.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

I am using ROS Indigo and Gazebo 7. I have looked at many answers and it seems Gazebo 7 works well with Indigo. I found a similar problem faced by someone else and he suggested to do the following changes to make it work with Indigo. tum-vision/tum_simulator#8
I edited all the header and cpp files as mentioned but still it's not working. Please help.

Error when doing catkin_make

Until this step in the installation everything goes well. When doing it only with the ardrone_autonomy package there is no error. SO i deduced there is something wrong ith hte tum_simulator package. Which gazebo version did you use? I am using Gazebo 7 and looking into the errors that the compilation gave me it seems that is because the version. I will put one erro like a example:

/usr/include/gazebo-7/gazebo/common/Event.hh: In instantiation of ‘gazebo::event::ConnectionPtr gazebo::event::EventT::Connect(const boost::function&) [with T = void(const gazebo::common::UpdateInfo&); gazebo::event::ConnectionPtr = boost::shared_ptrgazebo::event::Connection]’:
/usr/include/gazebo-7/gazebo/common/Events.hh:139:60: required from ‘static gazebo::event::ConnectionPtr gazebo::event::Events::ConnectWorldUpdateBegin(T) [with T = boost::_bi::bind_t<void, boost::_mfi::mf0<void, gazebo::DiffDrivePlugin6W>, boost::_bi::list1boost::_bi::value<gazebo::DiffDrivePlugin6W* > >; gazebo::event::ConnectionPtr = boost::shared_ptrgazebo::event::Connection]’
/home/eneko/catkin_ws/src/tum_simulator/cvg_sim_gazebo_plugins/src/diffdrive_plugin_6w.cpp:166:52: required from here
/usr/include/gazebo-7/gazebo/common/Event.hh:625:11: error: ‘class gazebo::event::EventTPrivate<void(const gazebo::common::UpdateInfo&)>’ has no member named ‘connections’
if (!this->myDataPtr->connections.empty())
^
/usr/include/gazebo-7/gazebo/common/Event.hh:627:64: error: ‘class gazebo::event::EventTPrivate<void(const gazebo::common::UpdateInfo&)>’ has no member named ‘connections’
auto const &iter = this->myDataPtr->connections.rbegin();
^

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.