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

Iván's profile - activity

2013-07-17 03:43:03 -0500 received badge  Famous Question (source)
2013-05-26 11:26:53 -0500 received badge  Famous Question (source)
2013-05-26 05:19:36 -0500 received badge  Notable Question (source)
2013-05-15 08:44:16 -0500 commented answer How to know the correct publisher type

Thank you!!! It works!!

2013-05-15 08:44:01 -0500 received badge  Supporter (source)
2013-05-15 02:06:55 -0500 received badge  Notable Question (source)
2013-05-15 01:08:30 -0500 commented answer How to know the correct publisher type

Thank you, now it compiles. But now I have the problem that I show at the end of my question.

2013-05-15 01:06:44 -0500 received badge  Editor (source)
2013-05-15 00:52:36 -0500 answered a question How to know the correct publisher type

Thank you, now it compiles. But I think there is still a problem with the type. "msg" should be an array int32[8], but I cannot fill that array.

I try just with: roscopter::RC msg; msg[2] = 1000;

And the error is: no match for ‘operator[]’ in ‘msg[2]’

2013-05-14 06:51:44 -0500 received badge  Popular Question (source)
2013-05-13 11:33:07 -0500 commented question How to know the correct publisher type

I already have that include. And I used < ::roscopter::RC> just because I thought it should be some similar to that and in the RC.h file I read this line: typedef boost::shared_ptr< ::roscopter::RC_<ContainerAllocator> > Ptr; and a lot of similar lines.

2013-05-13 09:31:15 -0500 asked a question How to know the correct publisher type

Hi,

I'm trying to make a program works with roscopter (https://code.google.com/p/roscopter/). In python I don't have any problem, but when I try to translate that to cpp, I don't know how to use the publisher and the subscriber.

In python, the publisher is just:

pub_rc = rospy.Publisher('send_rc', roscopter.msg.RC)

where "roscopter.msg.RC" is the type, and 'send_rc' is the variable that I want to publish.

In cpp, I think that I have to do something like this:

ros::NodeHandle nh; ros::Publisher publisher = nh.advertise< ::roscopter::RC>("send_rc", 1);

But that doesn't work, and I think than it is because < ::roscopter::RC> is not the correct type. Does someone know some way to know the right type?

Thank you!

---- EDIT ----

With the solution of jarvisschultz it compiles. But I think there is still a problem with the type. "msg" should be an array int32[8], but I cannot fill that array.

I try just with: roscopter::RC msg; msg[2] = 1000;

And the error is: no match for ‘operator[]’ in ‘msg[2]’

2013-04-14 20:32:46 -0500 received badge  Popular Question (source)
2013-03-07 04:14:52 -0500 received badge  Famous Question (source)
2013-03-05 02:54:00 -0500 asked a question Navigation by goal with Hector Quadrotor

Hi!

I'm making a ROS enable quadrotor. And I'm learning a little with Hector Quadrotor in Gazebo. Yesterday I did a answer about that but in this one I want simplify a little.

I can use pr2_teleop to control the Hector quadrotor, but I don't know how navigate by goals or paths.

I have test the "test_trajectory.cpp" file. But it just sends speed messages as pr2_teleop does.

Is there any way to move Hector quadrotor from [0,0,0] to [1,1,1] with a rosrun file? Else, is there any other thing to do this?

Thanks very much!

2013-03-05 01:02:32 -0500 commented answer Navigation by goal with Hector Quadrotor

Ok, it works. Thank you! But now it returns a message "Still waiting on map". So I try using "indoor_slam_gazebo.launch" as map. And then there are a lot of errors.

Because of that I would like change the question, do you know a simple rosrun file to say to the robot, "go from 0,0,0 to 1,1,1"?

2013-03-05 00:56:29 -0500 received badge  Scholar (source)
2013-03-04 21:24:14 -0500 received badge  Notable Question (source)
2013-03-04 10:58:29 -0500 received badge  Popular Question (source)
2013-03-04 09:18:54 -0500 commented answer Navigation by goal with Hector Quadrotor

I have already tried that, but it returns a failure.

[rosmake-6] Finished <<< hector_exploration_planner [FAIL] [ 3.98 seconds ]
[ rosmake ] Halting due to failure in package hector_exploration_planner. [ rosmake ] Waiting for other threads to complete.

Complete log: http://goo.gl/KfHdg

2013-03-04 05:24:03 -0500 asked a question Navigation by goal with Hector Quadrotor

Hi!

I'm making a ROS enable quadrotor. And I'm learning a little with Hector Quadrotor in Gazebo.

I can use pr2_teleop to control the quadrotor, but I don't know how navigate by goals or paths. I found a launch file in

hector/hector_navigation/hector_exploration_node/launch/exploration_planner.launch

that sould works to this purpose. But when I try to launch it I receive the next error:

ERROR: cannot launch node of type [hector_exploration_node/exploration_planner_node]: can't locate node [exploration_planner_node] in package [hector_exploration_node]

Are there any way to launch that file? Are there any way in that package to navigate by key point or to a goal?

Thank you so much!