| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
- ROS
- corrosion
- gjk
- cbindgen
- Cargo
- Turtlesim
- vscode
- separating axis theorem(sat)
- generic pointer
- broad-phase
- 비동기적
- 워크스페이스
- Topic
- C++
- gjk-epa
- UV
- rust
- convex
- CMAKE
- CONSTRAINTS
- remapping
- gradient accumulation
- narrow-phase
- subsribe
- roslaunch
- plotjuggler
- mock
- 데이터분석
- unittest
- rospy.spin
- Today
- Total
목록rust (5)
똑바른 날개
Rust의 변수는 scope를 가지며, 해당 공간안에서만 살아있다. scope는 {}으로 설명된다.fn main() { // This binding lives in the main function let long_lived_binding = 1; // This is a block, and has a smaller scope than the main function { // This binding only exists in this block let short_lived_binding = 2; println!("inner short: {}", short_lived_binding); } // End of the block // Err..
rust 설치하기curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrust는 rustup이라는 패키지에 의해서 설치 된다. rust는 6주의 빠른 release process를 가지며, rustup은 이러한 rust를 모든 platform에서 cross compile을 지원한다.기본적으로 rust는 ~/.cargo/bin 경로에 설치가 되며, Rust toolchain은 물론, rust, cargo, rustup은 모두 이안에 포함되어 있다.따라서, Rust 개발자들은 PATH에 rustup path를 추가해야한다.path추가export PATH=$PATH:# 만약 귀찮다면 해당 내용을 ~/.bashrc에 추가하면 편하게 사용이 가능하다.rus..
이 글에서는 cbindgen과 Corrosion을 활용해 Rust와 C++를 매끄럽게 통합하는 워크플로우를 소개한다. 앞서 다루었던 cbindgen -> corrision -> 통합 과정으로 설명을 진행한다.cbindgen이란?cbindgen은 Rust 라이브러리의 public C API를 분석해 자동으로 C 또는 C++11 헤더 파일을 생성하는 도구이다. Rust 팀과 협력해 개발된 만큼 Rust의 타입 레이아웃과 ABI를 정확히 보장한다.설치 및 사용법cargo install --force cbindgencbindgen --config cbindgen.toml --crate my_rust_library --output my_header.h참고자료 : https://upright-wing.tistory..