3 Star 0 Fork 0

mirrors_juaruipav/rclgo

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
allocator.go 473 Bytes
一键复制 编辑 原始数据 按行查看 历史
package rcl
// #cgo CFLAGS: -I/opt/ros/bouncy/include
// #cgo LDFLAGS: -L/opt/ros/bouncy/lib -lrcl -lrcutils
// #include "rcl/rcl.h"
import "C"
type Allocator struct {
Allocator *C.rcl_allocator_t
}
func GetZeroInitializedAllocator() Allocator {
zeroAllocator := C.rcutils_get_zero_initialized_allocator()
return Allocator{&zeroAllocator}
}
func GetDefaultAllocator() Allocator {
defAllocator := C.rcutils_get_default_allocator()
return Allocator{&defAllocator}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_juaruipav/rclgo.git
git@gitee.com:mirrors_juaruipav/rclgo.git
mirrors_juaruipav
rclgo
rclgo
6dcf2a438920

搜索帮助