Documentation
¶
Index ¶
- Constants
- func A(x, y float64) float64
- func B(x, y float64) float64
- func Convert23DPoint(obj [][2]float64) (obj3d [][]float64)
- func Convert2DPoint(obj [][2]float64) (obj2d [][]float64)
- func Convert32DPoint(obj [][3]float64) (obj2d [][]float64)
- func Convert3DPoint(obj [][3]float64) (obj3d [][]float64)
- func MaxFloat(a []float64) float64
- func MinFloat(a []float64) float64
- type GridMap
- func (m GridMap) ConvertObjMap2Point() (obj2d [][]float64)
- func (m GridMap) ConvertObjMap2PointHexa() (obj2d [][]float64)
- func (m GridMap) ConvertObjMap3Point() (obj3d [][]float64)
- func (m GridMap) ConvertObjMap3PointHexa() (obj3d [][]float64)
- func (g GridMap) Ind2Pos(xId, yId int) (float64, float64)
- func (m GridMap) Plan(sx, sy, gx, gy int, TRW TimeRobotMap) (route [][3]int, oerr error)
- func (m GridMap) PlanHexa(id int, sa, sb, ga, gb int, v, w, timeStep float64, TRW TimeRobotMap, ...) (route [][3]int, oerr error)
- func (g GridMap) Pos2Ind(x, y float64) (int, int)
- func (g GridMap) Pos2IndHexa(x, y float64) (int, int)
- func (g GridMap) Route2Pos(minT float64, route [][3]int) [][3]float64
- func (g GridMap) Route2PosHexa(minT float64, timeStep float64, route [][3]int) [][3]float64
- func (g GridMap) UpdateStep(TW TimeRobotMap, step int)
- func (g GridMap) UpdateTimeObjMapHexa(TW TimeRobotMap, route [][3]int, robotRadius float64)
- type Index
- type IndexT
- type MapMeta
- type MapYaml
- type Node
- type ObjMap
- type Point
- type TimeRobotMap
Constants ¶
View Source
const ( CloseThreth int8 = 90 //これより大きいと通れない [0,100] MaxTimeLength int = 100000 //これ以上のtを計算しない MaxSearchTimeStep int = 1000 //これ以上先の時間を計算しない MaxStopCount int = 10 //これ以上ストップしない )
Variables ¶
This section is empty.
Functions ¶
func Convert23DPoint ¶
func Convert2DPoint ¶
func Convert32DPoint ¶
func Convert3DPoint ¶
Types ¶
type GridMap ¶
type GridMap struct { Resolution float64 Origin Point Width int Height int MapOrigin Point CurrentMinTime float64 //TRW TimeRobotMap // ロボットが占有してるかどうかのマップ MaxT int // =MaxTimeLenghth ObjectMap ObjMap //元からある障害物ならTrue }
func NewGridMap ¶
initialize grid map using map resolution not using now
func NewGridMapReso ¶
func NewGridMapReso(m MapMeta, robotRadius float64, resolution float64, objMap [][2]float64) *GridMap
initialize gridmap by custom resolution using main
func NewGridMapResoHexa ¶
func NewGridMapResoHexa(m MapMeta, robotRadius float64, resolution float64, objMap [][2]float64) *GridMap
initialize custom resolution using main
func (GridMap) ConvertObjMap2Point ¶
func (GridMap) ConvertObjMap2PointHexa ¶
func (GridMap) ConvertObjMap3Point ¶
func (GridMap) ConvertObjMap3PointHexa ¶
func (GridMap) Plan ¶
func (m GridMap) Plan(sx, sy, gx, gy int, TRW TimeRobotMap) (route [][3]int, oerr error)
func (GridMap) Route2PosHexa ¶
func (GridMap) UpdateStep ¶
func (g GridMap) UpdateStep(TW TimeRobotMap, step int)
func (GridMap) UpdateTimeObjMapHexa ¶
func (g GridMap) UpdateTimeObjMapHexa(TW TimeRobotMap, route [][3]int, robotRadius float64)
type MapMeta ¶
func LoadROSMap ¶
func LoadROSMap(grid ros.OccupancyGrid, closeThreth int) *MapMeta
func ReadStaticMapImage ¶
read image file of ROS format
func (MapMeta) GetObjectMap ¶
type MapYaml ¶
type MapYaml struct { Image string `yaml:"image"` FreeThresh float64 `yaml:"free_thresh"` OccupiedThresh float64 `yaml:"occupied_thresh"` Origin [3]float64 `yaml:"origin"` Resolution float64 `yaml:"resolution"` Negate float64 `yaml:"negate"` }
func ReadImageYaml ¶
type Node ¶
type Node struct { T int `json:"t"` //time XId int `json:"x"` YId int `json:"y"` Cost float64 `json:"cost"` StopCount int Parent *Node }
func (Node) AroundHexa ¶
type TimeRobotMap ¶
type CostMap map[Index]uint8
func NewTRW ¶
func NewTRW(t, w, h int) TimeRobotMap
func TRWCopy ¶
func TRWCopy(current TimeRobotMap) TimeRobotMap
Click to show internal directories.
Click to hide internal directories.