Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Computation using odom and time?
Post Body

Hello.

Assume I am at coordinate (x,y,0) with respect to the /map frame.

The robot is going to (xg,yg,0).

I want to include in my python code (node that takes care of sending the goal and calculating E), a line that calculates a value E=50/((xg-x)^2 (yg-y)^2) every 0.5 seconds.

How do I go about it in regards to time and getting the values of the coordinates?

I think I can get the coordinates using the odom node, but what about the time? What functions and logic should I use to let the node calculates E every 0.5 s?

Author
User Suspended
Account Strength
0%
Suspended 3 months ago
Account Age
3 years
Verified Email
Yes
Verified Flair
No
Total Karma
272
Link Karma
1,137
Comment Karma
1,024
Profile updated: 3 hours ago
Posts updated: 4 months ago
ROS Caveman

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago