ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

automate's profile - activity

2022-09-23 07:56:17 -0500 received badge  Nice Question (source)
2022-06-13 23:36:48 -0500 received badge  Nice Question (source)
2022-02-26 02:33:06 -0500 received badge  Great Question (source)
2021-03-10 11:46:21 -0500 received badge  Good Question (source)
2019-12-17 02:40:25 -0500 received badge  Nice Question (source)
2018-12-05 07:33:14 -0500 received badge  Notable Question (source)
2018-12-05 07:33:14 -0500 received badge  Popular Question (source)
2018-12-05 07:33:14 -0500 received badge  Famous Question (source)
2018-02-21 06:30:48 -0500 marked best answer Navigation stack Holonomic: true not working

Though i set navigation stack holonomic parameter to true it doesn't generate y velocity. Any suggestions

I am using ROS indigo and Ubuntu 14.04.

Thank you

EDIT: Here are the launch files & output of roswtf:

base_local_planner_params.yaml

TrajectoryPlannerROS:
  acc_lim_th: 3.2
  acc_lim_x: 2.5 
  acc_lim_y: 2.5 
  max_vel_x: 0.65 
  min_vel_x: 0.0 

  max_vel_y: 0.1 
  min_vel_y: -0.1 

  max_trans_vel: 0.65 
  min_trans_vel: 0.1 
  max_rot_vel: 0.5 
  min_rot_vel: 2.0 
  sim_time: 1.7 
  sim_granularity: 0.025 
  goal_distance_bias: 32.0 
  path_distance_bias: 24.0 
  occdist_scale: 0.01 
  stop_time_buffer: 0.2 
  oscillation_reset_dist: 0.05 
  forward_point_distance: 0.325 
  scaling_speed: 0.25 
  max_scaling_factor: 0.2 
  vx_samples: 3 
  vy_samples: 10 
  vtheta_samples: 20 
  sim_period: 0.1 
  xy_goal_tolerance: 0.2 
  yaw_goal_tolerance: 0.17 
  rot_stopped_vel: 0.01 
  trans_stopped_vel: 0.01
  holonomic_robot: true
  y_vels: [-0.6, -0.1, 0.1, 0.6]

Costmap_common_params.yaml

obstacle_range: 1
raytrace_range: 1.5
footprint: [[-0.2,-0.2],[-0.2,0.2], [0.2, 0.2], [0.2,-0.2]]
#robot_radius: ir_of_robot
inflation_radius: 3

observation_sources: scan

scan: {sensor_frame: /laser, data_type: LaserScan, topic: /scan, marking: true, clearing: true}

global_costmap_params.yaml

global_costmap:
  global_frame: /map
  robot_base_frame: /base_link
  update_frequency: 1.0
  publish_frequency: 0.5
  static_map: false
  transform_tolerance: 1.5
  static_map: false
  rolling_window: true
  width: 100.0
  height: 100.0

local_comstmap_params.yaml

local_costmap:
  global_frame: /map
  robot_base_frame: /base_link
  update_frequency: 5.0
  publish_frequency: 2.0
  static_map: false
  rolling_window: true
  width: 6.0
  height: 6.0
  resolution: 0.05
  transform_tolerance: 1.5
  planner_frequency: 1.0
  planner_patience: 5.0

Output of roswtf

WARNING: Package "ompl" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
WARNING: Package name "twist_Converter" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits and underscores.
Loaded plugin tf.tfwtf
No package or stack in context
================================================================================
Static checks summary:

No errors or warnings
================================================================================
Beginning tests of your ROS graph. These may take awhile...
analyzing graph...
... done analyzing graph
running graph rules...
... done running graph rules
running tf checks, this will take a second...
... tf checks complete

Online checks summary:

Found 1 warning(s).
Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:
 * /mavros:
   * /mavros/setpoint_raw/global
   * /mavros/setpoint_raw/attitude
   * /mavros/setpoint_velocity/cmd_vel
   * /mavros/setpoint_position/local
   * /tf_static
   * /mavlink/to
   * /mavros/rc/override
   * /mavros/setpoint_raw/local
   * /mavros/setpoint_accel/accel
 * /move_base:
   * /tf_static
   * /move_base/cancel
 * /rviz:
   * /tf_static


Found 1 error(s).

ERROR The following nodes should be connected but aren't:
 * /move_base->/move_base (/move_base/global_costmap/footprint)
 * /move_base->/move_base (/move_base/local_costmap/footprint)

UPDATE:

I changed to DWA local planner. It too doesnt output linear y velocities.

Edited move_base.local

<launch>
  <master auto="start"/>
  <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
    <rosparam file="$(find my_robot_name_2dnav)/costmap_common_params.yaml" command="load" ns="global_costmap" />
    <rosparam file="$(find my_robot_name_2dnav)/costmap_common_params.yaml" command="load" ns="local_costmap" />
    <rosparam file="$(find my_robot_name_2dnav)/local_costmap_params.yaml" command="load" />
    <rosparam file="$(find my_robot_name_2dnav)/global_costmap_params.yaml" command="load" />

   <rosparam command="load" file="$(find  my_robot_name_2dnav)/dwa_local_planner_params.yaml"  />
     <param name="base_local_planner ...
(more)
2017-05-22 21:40:06 -0500 received badge  Famous Question (source)
2017-04-20 14:02:50 -0500 marked best answer Quadcopter navigation with obstacle avoidance?

Hi, I am trying to implement autonomous navigation with obstacle avoidance for quadcopter (which has Pixhawk). All I want to implement is quadcopter being able to move from point A to point B while avoiding obstacles. I am fine with the navigation being in 2D.

I am using Odroid connected to Pixhawk as the main controller. I am using Hokuyo URG-04LX-UG01 Scanning Laser Rangefinder for detecting obstacles.

What I figured out till now is there are two options to achieve navigation with obstacle avoidance. Use MAVROS somehow along with Navigation Stack / MoveIt. I guess as I am fine with navigation in 2D Navigation Stack should be what I should use. Is that correct?

Navigation stack requires 3 sort of data to function: Sensor Data, TF & Odometry data. I have LIDAR publishing sensor data, so thats fine.

My questions are:

  1. How do I get TF and Odometry data (used by navigation stack) using MAVROS? What sort of data should I use? How do I do that?
  2. Can I use MoveIt if I dont have map or anything and only 2D LIDAR data?
  3. In future I want UAV to navigate in 3D. If answer to 2nd question is yes then should I switch to MoveIt instead? And any links for resources to read specifically about moveit and pixhawk will be very helpful.

Thanks!

2017-03-27 17:47:33 -0500 received badge  Popular Question (source)
2017-03-27 17:47:33 -0500 received badge  Famous Question (source)
2017-03-27 17:47:33 -0500 received badge  Notable Question (source)
2017-03-27 17:47:08 -0500 received badge  Notable Question (source)
2017-03-27 17:47:08 -0500 received badge  Famous Question (source)
2017-02-04 01:23:33 -0500 received badge  Popular Question (source)
2017-02-04 01:23:33 -0500 received badge  Notable Question (source)
2016-10-02 22:12:09 -0500 received badge  Famous Question (source)
2016-08-07 09:27:34 -0500 received badge  Popular Question (source)
2016-07-30 15:25:18 -0500 received badge  Notable Question (source)
2016-07-30 15:15:46 -0500 asked a question mocap timeout issue when using mocap position update for PX4 UAV

I use Optitrack motion capture camera and push position data from Motive to LPE estimator to PX4. I get mocap timeout, xy timeout, sonar timeout msg and the software re initializes the position of the uav. Any idea what is the issue?

I use mavros to connect to UAV - roslaunch mavros px4.launch fcu_url:=/dev/ttyUSB0:921600

2016-07-30 14:20:59 -0500 asked a question No timestamp mocap_optitrack

I use mocap_optitrack to get data from Optitrack Motive to ROS. However the topic published using mocap_optitrack has no timestamp. px4 locap position estimator takes difference between old time stamp and new one to see if mocap data is valid. However as I have no timestamp on /mavros/mocap/pose topic I get mocap timeout msgs and locap position reinitialized. How do I add timestamps in topic published by mocap_optitrack

2016-07-29 16:29:03 -0500 asked a question quaternion.proto: File not found while installing gazebo

I get the following error while trying to run PX4 Firmware Simulation using make posix_sitl_default gazebo

make[5]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. [ 2%] Running C++ protocol buffer compiler on msgs/SensorImu.proto [ 4%] Running C++ protocol buffer compiler on msgs/CommandAttitudeThrust.proto [ 6%] Built target sdf quaternion.proto[ 8%] Running C++ protocol buffer compiler on msgs/CommandRateThrust.proto : File not found. vector3d.proto: File not found. SensorImu.proto: Import "quaternion.proto" was not found or had errors. SensorImu.proto: Import "vector3d.proto" was not found or had errors. SensorImu.proto[ 10%] Running C++ protocol buffer compiler on msgs/CommandMotorSpeed.proto :8:12: "gazebo.msgs.Quaternion" is not defined. SensorImu.proto:10:12: "gazebo.msgs.Vector3d" is not defined. SensorImu.proto:12:12: "gazebo.msgs.Vector3d" is not defined. make[8]: * [SensorImu.pb.cc] Error 1 make[8]: Waiting for unfinished jobs.... [ 12%] Running C++ protocol buffer compiler on msgs/CommandRollPitchYawrateThrust.proto make[7]: [CMakeFiles/mav_msgs.dir/all] Error 2 make[6]: [all] Error 2 make[5]: [gazebo_build] Error 2 make[4]: [src/firmware/posix/CMakeFiles/gazebo] Error 2 make[3]: [src/firmware/posix/CMakeFiles/gazebo.dir/all] Error 2 make[2]: [src/firmware/posix/CMakeFiles/gazebo.dir/rule] Error 2 make[1]: [gazebo] Error 2 make: * [posix_sitl_default] Error 2

It looks like it cannot find quaternion.proto and vector2d.proto. how can i get those files?

2016-07-14 09:05:00 -0500 asked a question For sending mocap data to uav to use mocap_pose_estimate or vision_pose_estimate

I wish to send motion capture pose data of uav to px4 autopilot local position estimator. I am trying to use mocap_pose_estimator mavros pluigin. However I see https://github.com/mavlink/mavros/tre... its mentioned to use vision_pose_estimate. So which one do I need to use?

2016-07-13 16:49:00 -0500 asked a question No output on mavros/global_position/pose topic even after publishing mocap data using mocap_pose_estimate

I publish mocap data from Optitrack software to mavros/mocap/pose and tf data on mavros/mocap/tf as per http://wiki.ros.org/mavros_extras documentation. Running px4.launch I see FCU: [inav] Mocap data valid msg. However I mavros/global_position/global topic does not publish anything. The local_position topic publishes nothing. As a result of that I cannot switch to auto_takeoff mode which I guess requires some source publishing global position data.

Any idea what I am missing?

I though global position data will only be published after I arm the uav. So I armed in altitude control mode. but it doesnt work. Do I need to be in off_board mode always?

I have tried publishing mocap data to /mocap/pose, /mocap/tf, mavros/vision_pose/pose but it doesnt work.

I also get no gps_fix warning. Is that an issue? If yes then how do i disable it.

2016-07-11 13:18:05 -0500 commented question How to convert navigation stack output from cmd_vel to position command in geometry_msgs/PoseStamped msg type

I didnt find a way to convert /cmd_vel output to position command. I dotn think thats possible too. I used position control where ever possible. Your idea of using trajectory path to generate way points and feed them into position control sounds like a good idea

2016-07-08 13:57:11 -0500 received badge  Popular Question (source)
2016-07-01 10:45:59 -0500 commented answer How to use Mocap_pose_estimate for sending Optitrach mocap pose data to fcu

I edited apm_pluiginlists.yaml file. I moved mocap_pose_estimate from blacklist list to whitelist. As a result of that now on running mavros I can see "Pluigin mocap_pose_estimate" loaded and initialized. However I dont yet get it. What is the next step? Plugin needs to subscribe to pose and tf.How

2016-07-01 09:15:16 -0500 commented answer How to use Mocap_pose_estimate for sending Optitrach mocap pose data to fcu

Thanks for the reply @tonybaltovski. But I dont get it completely. I added mocap_pose_estimate in the px4flow_pluiglists.yaml file and launched the px4flow.launch. I do not think that is the right way. Can you please explain in detail on how to use the mocap_pose_estimate pluigin?

2016-06-30 16:56:26 -0500 asked a question How to use Mocap_pose_estimate for sending Optitrach mocap pose data to fcu

I wish to send Optitrack mocap pose data (using vrpn_client_ros) to Pixhawk FCU through mavros_extras - mocap_pose_estimate plugin. However I do not see an executable made for mocap_pose_estimate plugin. So how do I use it ?

How to use that mocap_pose_estimate? Do I need to add executables for that in the CMakeLists.txt?

2016-06-26 11:08:08 -0500 received badge  Famous Question (source)
2016-06-18 17:40:30 -0500 received badge  Supporter (source)
2016-06-01 21:26:52 -0500 marked best answer Raytrace not clearing the costmap

Hi, I am using navigation stack for 2d navigation of UAV. I am using Hokuyo Lidar for obstacle detection. When the laser scan sees an obstacle it marks the points in costmap as obstacle. However if during the later scans if it doesnot find obstacle in the same spot it doesnt clear the obstacles from the costmap.

I havemarking: true, clearing: true, obstacle_range:2 and raytrace_range:20 in my costmap_common_params.yaml file. By these parameters I assume when no obstacles are seen by laserscan it shold clear area of 20m in front of it. But that doesnt happen. It clears around 1.5m area in front of it no matter what the raytrace_range is. Any insight as to what am I missing or what can i do will be very helpful.

I am using ROS Indigo.

Thanks. Please find below my costmap param files

costmap_common_params.yaml

obstacle_range: 2
raytrace_range: 20
footprint: [[-0.2,-0.2],[-0.2,0.2], [0.2, 0.2], [0.2,-0.2]]
#robot_radius: ir_of_robot
inflation_radius: 0.2

observation_sources: scan

scan: {sensor_frame: /laser, data_type: LaserScan, topic: /scan_filtered, marking: true, clearing: true}

global_costmap_params.yaml

global_costmap:
  global_frame: /map
  robot_base_frame: /base_link
  update_frequency: 1.0
  publish_frequency: 0.5
  static_map: false
  transform_tolerance: 5.0
  static_map: false
  rolling_window: true
  width: 50.0
  height: 50.0

local_costmap_params.yaml

local_costmap:
  global_frame: /map
  robot_base_frame: /base_link
  update_frequency: 50.0
  publish_frequency: 50.0
  static_map: false
  rolling_window: true
  width: 8.0
  height: 8.0
  resolution: 0.1
  transform_tolerance: 5.0
  planner_frequency: 5.0
  planner_patience: 5.0
2016-06-01 21:25:59 -0500 commented answer ROS Programmable Drones/UAVs in the Market

@vooon can u please expand on your suggestion of using dronekit with mavros? Dronekit will connect to the solo and control it. What do you mean by tieing telemetry channel to network?