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

jessiems10's profile - activity

2016-12-16 07:28:56 -0500 received badge  Famous Question (source)
2016-06-12 07:17:46 -0500 received badge  Notable Question (source)
2016-01-25 18:05:26 -0500 received badge  Famous Question (source)
2015-10-20 07:17:58 -0500 received badge  Famous Question (source)
2015-10-05 15:00:34 -0500 received badge  Supporter (source)
2015-10-05 14:56:19 -0500 commented question What camera topic should be given to the navigation stack?

what are you using in your launch files?

2015-10-01 12:57:45 -0500 answered a question navfn planning through wall

I don't see some parameters that I know of in costmap_common_params that would help you in the cost map: cost_scaling_factor and inflation_radius. I would throw these parameters in an inflation layer namespace. So it would look something like this in your .yaml file:

   inflation_layer:
      enabled:             true
      cost_scaling_factor: 10 #default value; for my work, I have been using values between 40-50
      inflation_radius:    0.55 #default value; for my work, I have been using values between 0.8-1.0

There are plenty of other parameters you can add in to get the costmap working the way you need it to. I would do some research here and read up on what other parameters you may want to add in rather than using the defaults: http://wiki.ros.org/costmap_2d/flat and http://wiki.ros.org/costmap_2d/hydro/...

2015-10-01 12:37:34 -0500 commented question Help with global planning of hector_quadrotor

how are you getting the quad rotor up into the air and keeping it there?

2015-09-30 13:12:12 -0500 received badge  Notable Question (source)
2015-09-21 16:58:02 -0500 received badge  Notable Question (source)
2015-09-05 01:38:32 -0500 received badge  Popular Question (source)
2015-09-01 15:49:02 -0500 asked a question Can hector_quadrotor use the ROS navigation stacks?

I have some software that uses navigation stacks for the turtlebot and work. I'm now transferring those files onto the hector_quadrotor and I'm having issues with the move_base file in the navigation stacks. Is the hector_quadrotor compatiable with move_base? Is there something I'm missing?

I'm working with ROS Indigo and Ubuntu 14.04.

2015-08-26 06:19:07 -0500 received badge  Popular Question (source)
2015-08-25 12:41:53 -0500 answered a question How to get hector_quadrotor to fly autonomously

I was able to find two things after trial and error with a coworker. The flyTopic needed to be with "sonar_height" which connects with the range or height off the ground, and the geometry_msgs:Twist will still need to "cmd_vel" instead of "move_base". The other thing (which made me feel really silly) was that you need ros::spingOnce(); in the while(ros::ok()), otherwise the program won't get any of the callbacks.

Now I'm having issues with the time portion so I've started debugging that. If anyone else sees anything, please let me know!

2015-08-25 10:30:34 -0500 commented question How to get hector_quadrotor to fly autonomously

Also, using ROS Indigo and Ubuntu 14.04 lts

2015-08-24 15:39:19 -0500 asked a question How to get hector_quadrotor to fly autonomously

So, still new to ROS and the debugging of the programs. I'm trying to make a program where hector_quadrotor flies up into the air, hovers, spins, and then continues to hover before going to the next task. I've gotten it to work with just forcing the functions through:

#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/Range.h>
#include <sensor_msgs/LaserScan.h>
#include <sensor_msgs/Imu.h>

// tf Subscriber
#include <tf/tfMessage.h>
#include <tf/transform_listener.h>
#include <tf/transform_listener.h>
#include <tf/transform_broadcaster.h>
#include <tf/message_filter.h>
#include <message_filters/subscriber.h>

// IOStream for Testing
#include <iostream>

namespace quad_lift_spin {// Structure of Elements

// initialization of global varibles

int mapYSize = 0, mapXSize = 0, numAgents, agentID;
float agentLocation[3] = { 0, 0, 0 };

geometry_msgs::Twist lift_msg;
}

using namespace quad_lift_spin;

void quad_lift()
{
    lift_msg.linear.x = 0;
    lift_msg.linear.y = 0;
    lift_msg.linear.z = 0;
    lift_msg.angular.x = 0;
    lift_msg.angular.y = 0;
    lift_msg.angular.z = 0;

    lift_msg.linear.z = 0.5;
    ros::Duration(2).sleep(); //wait 2 seconds
    //quadLSPub.publish(lift_msg);
    /*lift_msg.linear.z = 0;
    ros::Duration(4).sleep(); //wait 4 seconds
    //quadLSPub.publish(lift_msg);*/
}

void quad_hover()
{
    lift_msg.linear.x = 0;
    lift_msg.linear.y = 0;
    lift_msg.linear.z = 0;
    lift_msg.angular.x = 0;
    lift_msg.angular.y = 0;
    lift_msg.angular.z = 0;

    /*lift_msg.linear.z = 0.5;
    ros::Duration(2).sleep(); //wait 2 seconds
    //quadLSPub.publish(lift_msg);*/
    //lift_msg.linear.z = 0;
    //ros::Duration(4).sleep(); //wait 4 seconds
    //quadLSPub.publish(lift_msg);
}

void quad_spin()
{
    lift_msg.linear.x = 0;
    lift_msg.linear.y = 0;
    lift_msg.linear.z = 0;
    lift_msg.angular.x = 0;
    lift_msg.angular.y = 0;
    lift_msg.angular.z = 0;

    lift_msg.angular.z = 0.5;
    ros::Duration(2).sleep(); //wait 2 seconds
    //quadLSPub.publish(lift_msg);

    /*lift_msg.angular.z = 0;
    ros::Duration(4).sleep(); //wait 4 seconds
    //quadLSPub.publish(lift_msg);*/
}

int main(int argc, char **argv)
{
    ros::init(argc, argv, "quad_lift_spin");
    ros::NodeHandle nh;
    //ros::NodeHandle pnh("~");

    ros::Publisher quadLSPub = nh.advertise<geometry_msgs::Twist>("cmd_vel", 10);

    quad_lift();    
    quadLSPub.publish(lift_msg);
    ros::Duration(2).sleep();
    quad_hover();
    quadLSPub.publish(lift_msg);
    ros::Duration(3).sleep();
    quad_spin();
    quadLSPub.publish(lift_msg);
    ros::Duration(5).sleep();
    quad_hover();
    quadLSPub.publish(lift_msg);
}

With this working, I've been trying to figure out the publishers and subscribers needed to get the separate functions to work and have run into a snag with the publishing and subscribing:

#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <sensor_msgs/Range.h>
#include <sensor_msgs/LaserScan.h>
#include <sensor_msgs/Imu.h>
#include <std_msgs/Bool.h>
#include <std_msgs/Header.h>
#include "target_alert/alert.h"

// tf Subscriber
#include <tf/tfMessage.h>
#include <tf/transform_listener.h>
#include <tf/transform_broadcaster.h>
#include <tf/message_filter.h>
#include <message_filters/subscriber.h>

// IOStream for Testing
#include <iostream>

namespace quad_lift_spin {// Structure of Elements

// initialization of global varibles

int mapYSize = 0, mapXSize = 0, numAgents, agentID;
float agentLocation[3] = { 0, 0, 0 };

geometry_msgs::Twist lift_msg;

sensor_msgs::Range sonar_height;

int flight_mode;

}

using namespace quad_lift_spin;

void quad_lift(const sensor_msgs::Range::ConstPtr &msg)
{
    lift_msg.linear.x = 0;
    lift_msg.linear.y = 0;
    lift_msg.linear.z = 0;
    lift_msg.angular.x = 0;
    lift_msg.angular.y = 0 ...
(more)
2015-08-13 18:37:28 -0500 received badge  Popular Question (source)
2015-08-13 18:36:55 -0500 received badge  Enthusiast
2015-08-05 16:14:47 -0500 answered a question Spawning hector quadrotor crashes gazebo on indigo

Have you tried making sure that all of the need files are downloaded for the demo? When I was running into building errors, I did

$ sudo apt-get remove ros-indigo-hector-

Then hit the tab button till I got the list of all installed hector related packages (be careful not to remove anything). I was missing some of the packages so as soon as I sudo apt-get install the rest, my errors went away.

But, the way your error is presented, you maybe missing the controller package for gazebo.

$ sudo apt-get install ros-indigo-hector-quadrotor-controller
$ sudo apt-get install ros-indigo-hector-quadrotor-controller-gazebo
2015-08-05 10:09:09 -0500 commented answer pr2_teleop not working with indoor simulator

Yes, I'm sure I am on that terminal alone. And when /cmd_vel is echoed this is the response: WARNING: no messages received and simulated time is active.

That would mean the source code is messed up and I'd have to dig to fix that, I think I went and tried the X-box controller and that made it work

2015-08-04 19:11:39 -0500 asked a question pr2_teleop not working with indoor simulator

I'm still new to ROS but I have gone through the hector quadrotor tutorial ( http://wiki.ros.org/hector_quadrotor/... ) and the indoor program comes up fine with no errors. Then I run:

$ rosrun pr2_telop_pr2_keyboard

And the program goes just fine but when I hit keys on the keyboard, nothing happens to the quadrotor. I'm running on Ubuntu 14.04 LTS and ROS Indigo. If anyone could give me suggestions on what to echo or look into to fix the connection between the keyboard controller and the sim quadrotor, that would be fantastic.

Thanks!!