Git Product home page Git Product logo

Comments (4)

klaxalk avatar klaxalk commented on July 23, 2024

The UAV speed is defined by the system "constraints", which are managed by the ConstraintManager. The speed defined within the constraints is the "maximum limit", so the trackers should not allow you to fly faster. So those are the "limits".

However, if you want to control the UAV by specifying the desired speed, please, use the control_manager/velocity_reference topic while the MpcTracker is active.

from mrs_uav_system.

lidiaxp avatar lidiaxp commented on July 23, 2024

I'm trying to set the speed by constrainst_manager.yaml setting the speed and acceleration to 4, and the jerk and snap to 50. But the maximum speed I get is 1.4, do you know why?

MpcTracker is active by default, and even if you set it manually, the control_manager/velocity_reference topic doesn't exist.

from mrs_uav_system.

klaxalk avatar klaxalk commented on July 23, 2024

Please check the topic control_manager/current_constraints to see what is currently set. Beware, If you fly with the MpcController, the current constraints are overridden to much slower than what you set with the ConstraintManager. Also, the topic control_manager/velocity_reference should exist since 4108be5 in uav_core.

from mrs_uav_system.

lidiaxp avatar lidiaxp commented on July 23, 2024

@klaxalk I am using MpcTracker and MpcController to fly. When I check control_manager/current_constraints the constraints are fast (horizontal speed = 8) but when the UAV takeoff the constraints switch to slow (horizontal speed = 1). I updated the MRS and used the topic control_manager/velocity_reference but nothing happens (have tried with services too).

rostopic pub /uav1/control_manager/velocity_reference mrs_msgs/VelocityReferenceStamped "header:
  seq: 0
  stamp:
    secs: 0
    nsecs: 0
  frame_id: ''
reference:
  velocity: {x: 5.0, y: 5.0, z: 5.0}
  altitude: 0.0
  heading: 0.0
  heading_rate: 0.0
  use_altitude: false
  use_heading: false
  use_heading_rate: false" 

I am using RTK as odometry and setting the constraints to fast as follow in these config files (.yaml). And calling them in the start.sh 'Control' "waitForOdometry; roslaunch mrs_uav_general core.launch WORLD_FILE:=./world.yaml config_constraint_manager:=./custom_configs/constraint_manager.yaml config_odometry:=./custom_configs/odometry.yaml".

How do I keep the fast constraints after the takeoff?

from mrs_uav_system.

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.