Comments (1)
Hi! Thanks for the extensive workflow description. We were able to replicate your error. It seems that we are not catching a division error.
To solve your problem you have to set the altitude of your polygon. In coverage_planner.yaml you set the sensor_model_type: 1 # [0: Line, 1: Frustum]
. This refers to a view frustum at with a nadir camera configuration with a certain opening angle and at a constant altitude >0.0. You need to define this altitude by setting the first z-component of your polygon. Here is your adapted code snippet.
#!/usr/bin/env python
import rospy
from geometry_msgs.msg import Point32
from polygon_coverage_msgs.srv import PolygonService
from polygon_coverage_msgs.msg import PolygonWithHolesStamped
if __name__ == '__main__':
rospy.init_node('polygon_setter')
rospy.wait_for_service('/coverage_planner/set_polygon')
try:
set_poly_srv = rospy.ServiceProxy('/coverage_planner/set_polygon', PolygonService)
poly = PolygonWithHolesStamped()
poly.header.stamp = rospy.Time.now()
poly.header.frame_id="map"
poly.polygon.hull.points = [Point32(-29.5515, 31.0672, 1.0), # Fix polygon altitude greater than 0.0
Point32(-17.7991, 99.7963, 0.0),
Point32(-40.5039, 80.0898, 0.0),
Point32(-51.1835, 51.8711, 0.0)]
resp = set_poly_srv(poly)
print resp.success
except rospy.ServiceException as e:
print("Service call failed: %s"%e)
Note that instead of using the view frustum, you can also use sensor_model_type: 0 # [0: Line, 1: Frustum]
. This allows you to set the sweeping width through the parameter lateral_footprint: 1.0 # Only for line sensor model.
. For example by setting the footprint to 10.0
you increase the sweep distance. In this case, you can leave the altitude at 0.0
.
from polygon_coverage_planning.
Related Issues (20)
- further inquiry from issue #66
- Inquiry Continuation of #66 and #67 HOT 4
- Setting frame_id to "map" does not work HOT 3
- Question about Clustering HOT 1
- Large terrain takes very very long time to plan coverage path HOT 1
- error: Goal node is not at back of solution HOT 3
- ROS2 release HOT 2
- Question about video presentation. HOT 6
- What is lateral FOV in yaml file? HOT 13
- Path precomputation does not give feedback
- Plan without setting start or goal
- What is wall distance parameter? HOT 1
- Can't echo /waypoint_list HOT 2
- package for ROS melodic faulty HOT 1
- line distance HOT 1
- using with map (map.pgm or occupancy grid map) HOT 2
- Inquiry on how to create accurate waypoints which exist in a map when using polygon_coverage_ros package
- sweep_test
- Error while trying to solve
- coverage planner crashes PC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polygon_coverage_planning.