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

Mayank's profile - activity

2016-04-23 18:22:43 -0500 received badge  Famous Question (source)
2015-01-01 16:47:24 -0500 received badge  Famous Question (source)
2013-12-29 13:47:53 -0500 received badge  Famous Question (source)
2013-04-16 07:57:56 -0500 received badge  Famous Question (source)
2012-10-18 08:44:59 -0500 received badge  Notable Question (source)
2012-09-26 10:56:37 -0500 received badge  Popular Question (source)
2012-09-09 19:12:01 -0500 received badge  Popular Question (source)
2012-09-09 19:12:01 -0500 received badge  Notable Question (source)
2012-08-28 23:49:19 -0500 received badge  Notable Question (source)
2012-08-28 23:49:19 -0500 received badge  Popular Question (source)
2012-08-24 21:06:28 -0500 received badge  Notable Question (source)
2012-08-24 21:06:28 -0500 received badge  Popular Question (source)
2012-08-22 02:40:54 -0500 received badge  Popular Question (source)
2012-08-22 02:40:54 -0500 received badge  Notable Question (source)
2012-08-22 02:40:54 -0500 received badge  Famous Question (source)
2012-07-02 05:03:05 -0500 commented question Problem with ee_cart_imped Controller for PR2 Arms

Thanks for your comment. I just figured out what was causing the problem.

2012-07-02 04:12:42 -0500 asked a question Problem with ee_cart_imped Controller for PR2 Arms

Hi All,

I'm trying to move the PR2 arms through some predefined points. I have a launch file that first moves them using the default Joint Trajectory Controller on the PR2, and then the ee_cart_imped controller kicks in, and moves the arms through some cartesian coordinates.

My problem is that if initially the Joint Trajectory Controller has run, then the ee_cart_imped controller runs, but if the launch file just runs the ee_cart_controller, I get the following

[ INFO] [1341238106.346256027]: Waiting for the ee_cart_imped_action server

And it does not move the arm at all. Any ideas?

2012-06-28 08:38:21 -0500 answered a question tf::transformPoint cannot find frame

Instead of trying to transform individual points, I am now transforming the entire point cloud to another frame. The code is as follows,

void Convert::convertCallback(const sensor_msgs::PointCloud2 &inputCloud){

    sensor_msgs::PointCloud2 outCloud;
    bool val = mTransformListener->waitForTransform("/base_link", inputCloud.header.frame_id, inputCloud.header.stamp, ros::Duration(10.0));
    pcl_ros::transformPointCloud("/base_link", inputCloud, outCloud, *mTransformListener);
    /* Process the point cloud */
}

It initially worked for the first time, and I could transform the Point Cloud, however, now I am getting a strange error,

[ERROR] [1340908167.092985478]: Lookup would require extrapolation into the past.  

Requested time 1340908154.777419783 but the earliest data is at time 1340908155.041740035, when looking up transform from frame [/narrow_stereo_optical_frame] to frame [/base_link]
Failed to find a field named: 'x'. Cannot convert message to PCL type.
terminate called after throwing an instance of 'pcl::InvalidConversionException'
  what():  Failed to find a field named: 'x'. Cannot convert message to PCL type.
Aborted

Can anyone tell me what's wrong?

2012-06-28 08:33:19 -0500 commented answer tf::transformPoint cannot find frame

Thanks for your answer. I edited the code following your advice, but it still doesn't seem to work. I've posted the details below.

2012-06-27 15:12:54 -0500 answered a question tf::transformPoint cannot find frame

Thanks for your answer. On adding the the frame inside the header, the previous error is rectified. However, now, it gives me an error saying

terminate called after throwing an instance of 'tf::ExtrapolationException'

what(): Lookup would require extrapolation into the future.

I tried to get around this by myself editing the timestamp in the "min_in" header, and then I got the error

terminate called after throwing an instance of 'tf::ExtrapolationException'

what(): Lookup would require extrapolation into the past.

Any ideas on how I can fix this?

2012-06-27 15:09:10 -0500 commented answer tf::transformPoint cannot find frame

Thanks for your answer. I can't post a long comment, so please read my question posted below!

2012-06-27 09:52:05 -0500 received badge  Organizer (source)
2012-06-27 09:24:34 -0500 asked a question tf::transformPoint cannot find frame

Hi All,

I am trying to convert PointStamped values from the narrow_stereo_link frame to the base_link frame using tf::TransformListener::transformPoint. However, I keep getting:

terminate called after throwing an instance of 'tf::LookupException'

what(): Frame id / does not exist!

In my code I have the following function call,

mTransformListener.waitForTransform("/narrow_stereo_link", "/base_link", ros::Time::now(), ros::Duration(5.0)); mTransformListener.transformPoint("/base_link", min_in, min_res);

On executing

rosrun tf tf_echo narrow_stereo_link base_link

on the terminal, I get the following output :

At time 1340824941.479

  • Translation: [0.152, -0.117, -1.386]
  • Rotation: in Quaternion [-0.110, 0.061, 0.869, -0.479]

        in RPY [0.214, 0.133, -2.119]
    

which means that the two are connected in the tf_tree, which is also seen in the frames.pdf generated by

rosrun tf view_frames

Can anyone help me with this?

2012-06-05 21:59:10 -0500 received badge  Student (source)
2012-06-05 16:03:06 -0500 received badge  Editor (source)
2012-06-05 16:02:24 -0500 asked a question Unnecessary rotation of PR2 Grippers while executing trajectory

I have a controller which moves the PR2's arms through some specified points. I've noticed that while executing the trajectory, it unnecessarily rotates its grippers by more than 360 degrees to get the orientation of it's wrist joint. What I mean is, instead of rotating by an angle x, it actually rotates by an angle 2kPi + x. I am doing angle correction to avoid this, but it's not working. Has anybody faced this? How do I change the kind of motion planning it does between the specified trajectory points?

2012-06-05 13:10:02 -0500 received badge  Supporter (source)
2012-06-05 13:10:01 -0500 received badge  Scholar (source)
2012-06-05 12:23:51 -0500 asked a question Move the PR2 arm through some predefined points

I am a beginner with ROS. I am doing a simple task of writing a controller to move the PR2 arm through some predefined points. So, I need the values of [r_shoulder_pan_joint, r_shoulder_lift_joint, r_upper_arm_roll_joint, r_elbow_flex_joint, r_forearm_roll_joint, r_wrist_flex_joint, r_wrist_roll_joint] and similarly for the left arm, for each of these points. I move the PR2 arm through these points using the interactive manipulation, and am trying to listen to a topic to get these joint values. But I don't know what topic publishes these joint values. What topic should I subscribe to for this?

2012-04-11 01:41:32 -0500 asked a question rxgraph gives Segmentation fault while starting on Ubuntu 10.10

While simply following the tutorials to get familiar with ROS, as soon I run rxgraph, it stops with a segmentation fault immediately. Can I get some help?