인터프리트 언어 특성상 해보기 전에 오타나 이런걸 확인하기 좀 어려운데

py를 pyc pyo등으로 바꾸는 "컴파일"을 제공하는 언어다 보니

python byte code로 변환하기 위해 문법을 체크하는지

이걸 이용해서 문법을 우회적으로(?) 확인할 수 있다

 

$ pycompile 
Usage: pycompile [-V [X.Y][-][A.B]] DIR_OR_FILE [-X REGEXPR]
       pycompile -p PACKAGE

 

오.. 좋은데?

$ cat tt.py 
mport time

time.sleep(1)

$ pycompile tt.py 
  File "tt.py", line 1
    mport time
             ^
SyntaxError: invalid syntax

[링크 : https://salguworld.tistory.com/entry/LinuxPython-파이썬-pycompile-활용-파이썬-코드-C-코드-컴파일-예제-1단일-소스코드-컴파일]

[링크 : https://stackoverflow.com/questions/4537411/compile-but-do-not-run-a-python-script]

 

thank you claude.ai

Posted by 구차니

drone 에서 telemetry 용 프로토콜로 사용된다고 한다.

 

mavlink 1 packet

[링크 : https://mavlink.io/ko/guide/serialization.html#v1_packet_format]

 

mavliink 2 packet

[링크 : https://mavlink.io/ko/guide/serialization.html#packet_format]

 

stx가 magic 으로 표시되나?

MAVLink 2 Packet Format
Below is the over-the-wire format for a MAVLink v2 packet. The in-memory representation might differ.

uint8_t magic;              ///< protocol magic marker
uint8_t len;                ///< Length of payload
uint8_t incompat_flags;     ///< flags that must be understood
uint8_t compat_flags;       ///< flags that can be ignored if not understood
uint8_t seq;                ///< Sequence of packet
uint8_t sysid;              ///< ID of message sender system/aircraft
uint8_t compid;             ///< ID of the message sender component
uint8_t msgid 0:7;          ///< first 8 bits of the ID of the message
uint8_t msgid 8:15;         ///< middle 8 bits of the ID of the message
uint8_t msgid 16:23;        ///< last 8 bits of the ID of the message
uint8_t payload[max 255];   ///< A maximum of 255 payload bytes
uint16_t checksum;          ///< CRC-16/MCRF4XX

uint8_t signature[13];      ///< Signature which allows ensuring that the link is tamper-proof (optional)

[링크 : https://mavlink.io/ko/about/overview.html]

'개소리 왈왈 > 쿼드콥터(RC)' 카테고리의 다른 글

pixhawk autotune  (0) 2026.07.02
hyper go no.14210 1:14 rc  (0) 2025.05.11
pixhawk  (5) 2024.10.07
드론 하나 획득  (0) 2020.11.07
RC카 분해 2  (2) 2020.07.24
Posted by 구차니

뼈대(armature, 골조) 를 이용해서 원하는대로 포즈 잡는걸 리깅(rigging, 조작)이라고 하는듯

 

e로 뼈 마디 늘리고 subdivision으로 여러개 생성가능

X 누르고 미러모드에서 shift-e로 대칭모드 생성 가능

alt-p로 뼈 분리 (clear parent는 독립된 뼈, disconnect bone은 부모, 자식은 유지하나 떨어짐)

ctrl-p 로 부모 지정(그래서 뼈와 육체를!)

[링크 : https://tintana4168.tistory.com/20]

 

먼가 weight 를 막 색칠하네?

bone - object 순서로 선택하고 탭으로 바꾸는데서 클릭해보면

weight paint mode 가 있다

 

셀렉트 박스 하고 뼈를 누르면 색상으로 영향을 주는 곳을 볼 수 있다.

[링크 : https://tintana4168.tistory.com/22

 

zero weight - 해당 뼈에 영향을 받지 않음을 의미

[링크 : https://tintana4168.tistory.com/35]

 

gradient weight 기능으로 전체적인 웨이트 조절.

이걸로 잘 칠해주면 엉뚱한 덩어리가 안끌오려나?

[링크 : https://tintana4168.tistory.com/36]

[링크 : https://tintana4168.tistory.com/category/Blender/Blender%20Rigging]

'프로그램 사용 > Blender' 카테고리의 다른 글

blender 폴리곤 줄이기  (0) 2026.07.06
blender armature addon  (0) 2026.06.27
blender bone (armature)  (0) 2026.06.24
3d model 다운로드 / blender import  (0) 2026.06.24
blener ll3m  (0) 2026.05.27
Posted by 구차니

modify 에서 add modigy

generate - decimate 하고 값을 올려주면 폴리곤이 줄어든다.

 

테스트 해봐야겠지만

un-subdivide는 드라마틱하게 줄지 않고

planar가 비슷한 각도들 끼리 묶어서 획기적으로 줄여주는 듯한데..

텍스쳐가 있으면 문제가 좀 생기는 듯.

[링크 : https://oztv.tistory.com/743]

 

glb original로 다운로드

[링크 : https://sketchfab.com/3d-models/firefighter-in-turnout-gear-96801f24932642eea7708067da680a74]

 

줄이면 텍스쳐 위치가 깨져서 난리가 난다.

  wirefrmae material preview
원본 
collapse 0.1
un-subdivision
32767(max)
planar 5도

 

 

'프로그램 사용 > Blender' 카테고리의 다른 글

blender rigging  (0) 2026.07.06
blender armature addon  (0) 2026.06.27
blender bone (armature)  (0) 2026.06.24
3d model 다운로드 / blender import  (0) 2026.06.24
blener ll3m  (0) 2026.05.27
Posted by 구차니

저번주 리셋은 4시 20분 인가 그랬던것 같은데

주말 동안에 리셋 시간이 떙겨졌다. 좋은건가...?

 

'프로그램 사용 > ai 프로그램' 카테고리의 다른 글

claude.ai / claude code  (0) 2026.07.03
회사 클로드 결제  (0) 2026.07.03
gemini cli 안녕~?  (0) 2026.07.01
mogrify를 이용한 이미지 증강, 배경색 설정  (0) 2026.06.25
local llm - mcp  (0) 2026.06.20
Posted by 구차니

끝내기 전에 가볼까 했는데 역시 쫄아서 그만둠 ㅋㅋ

 

갑자기 공자

 

갑자기노자?

 

꿈에 그리던 재회였으면 얼마나 좋았을까

 

그래 눈이 빨가면 죽여야지(응?)

 

 

순간 길티크라운이 생각난..

 

 

이제 4회차 5회차 하면 되려나?

 

36시간(날려 먹은 플레이 타임이랑 하면.. 어우)

 

아무튼 챕터 선택과 디버그 룸이 생겼는데

디버그 룸은 들어가보니 멀해야 할지 모르겠고 -ㅁ-

챕터 선택은 지금까지 해왔던 스토리의 목차가 쭈욱 나온다.

 

혹시나 먼가 숨겨진 뒷 이야기가 있을까 해서

가장 마지막에 세이브된걸 불러서 시작해보니

그냥 가장 첫 미션 나옴

 

그나저나 어쩌면 소소(?) 하지만

에밀 텍스쳐 까지 한글화 버림(오늘만 특가, 추천 상품 등)

 

개인적으로는 너무 집중하고 빠져들어서 해서

시간 가는 줄도 모르고 주중에 새벽 2~3시 까지 달리는 바람에 피곤하게 했던 원흉인데

아무튼 즐거웠다?

재미있었다? 정도가 딱 어울리는 게임

물론 똥손이라 그냥 easy 모드에 편하게 했지만

그렇다고 normal이나 hard로 할 자신은 없는 게임 

Posted by 구차니
개소리 왈왈/독서2026. 7. 4. 21:42

당근에서 8천원에 팔길래 업어옴

픽스호크 FC로 먼가 한다는 것 보다는

픽스호크로 어떻게 연결하고

pc 프로그램 어떻게 사용한다 정도의 내용

(대충 보긴했는데 아두파일럿과 픽스호크 프로그램 양쪽으로 설명해준건 좋은 듯)

 

내가 기대한건 PID 튜닝이라던가

드론 자작하는 것에 대한 좀 더 상세한 내용이었는데 전무하다 시피해서 좀 아쉬운 책

[링크 : https://ebook-product.kyobobook.co.kr/dig/epd/sam/E000003079999]

'개소리 왈왈 > 독서' 카테고리의 다른 글

라노벨 중고거래  (0) 2025.12.28
책 - 부서지는 아이들  (0) 2025.07.03
희망찬 회의론자  (4) 2025.05.19
데미안  (0) 2025.05.13
스태프 엔지니어  (0) 2025.05.12
Posted by 구차니

로그인 해서 쓰니 둘다 쿼터가 연돈된다.

그런데 4:20에 리셋된다는데

 

웹에서는 3:50에 재설정된다고 (3시 53분이라고!) 써있는데

시간이 지나서 해보려는데도 안된다. 야 30분 계산 어따 빼먹었어?

 

그 와중에 5시간 쿼터에서 100% 쓰니 주간 한도 11%

100% 꾹꾹 눌러 쓰면

10번 조금 못미치게 쓸수 있으니

오전 / 오후 해서 2번. 주 5일 겨우 쓸수 있겠네

'프로그램 사용 > ai 프로그램' 카테고리의 다른 글

claude code 세션 정보  (0) 2026.07.06
회사 클로드 결제  (0) 2026.07.03
gemini cli 안녕~?  (0) 2026.07.01
mogrify를 이용한 이미지 증강, 배경색 설정  (0) 2026.06.25
local llm - mcp  (0) 2026.06.20
Posted by 구차니

크이전에 결제한 적이 있어서 카드 번호가 있다보니

별다른 절차없이 결제 하기 누르고 카드 고르니 끝.

전사적으로 결제하게 한게 2년 정도 지났는데

그때도 3달 정도 결제하고 쓰질 않아서 돈 아까워서 없앴다가

이제 쓸일이 좀 생겨서 결제!

 

2024.11.22 - [개소리 왈왈/인공지능] - claude 구독 해제

'프로그램 사용 > ai 프로그램' 카테고리의 다른 글

claude code 세션 정보  (0) 2026.07.06
claude.ai / claude code  (0) 2026.07.03
gemini cli 안녕~?  (0) 2026.07.01
mogrify를 이용한 이미지 증강, 배경색 설정  (0) 2026.06.25
local llm - mcp  (0) 2026.06.20
Posted by 구차니
embeded/robot2026. 7. 3. 12:25

일단은 micro HDMI 연결해서 시도.

 

다행히 x11 forwarding으로 되네. 모니터 안달아도 되겠다

ros2shell
ros2 run turtlesim turtlesim_node
ros2 run turtlesim turtle_teleop_key

 

하라는 대로 해보면 아래처럼 나온다.

ssh로 해서 귀찮아서 백그라운드로 돌리고 쑈하는 중

G(gola), B(?) 누르면 아래처럼 메시지가 나온다.

(ros2 galactic py3)er@er:~$ ros2 run turtlesim turtlesim_node
[INFO] [1783047470.975415679] [turtlesim]: Starting turtlesim with node name /turtlesim
[INFO] [1783047470.985410507] [turtlesim]: Spawning turtle [turtle1] at x=[5.544445], y=[5.544445], theta=[0.000000]
^Z
[1]+  Stopped                 ros2 run turtlesim turtlesim_node
(ros2 galactic py3)er@er:~$ bg
[1]+ ros2 run turtlesim turtlesim_node &
(ros2 galactic py3)er@er:~$ ros2 run turtlesim turtle_teleop_key
Reading from keyboard
---------------------------
Use arrow keys to move the turtle.
Use G|B|V|C|D|E|R|T keys to rotate to absolute orientations. 'F' to cancel a rotation.
'Q' to quit.
[INFO] [1783047541.329042626] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047541.872528190] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047541.888733657] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047541.904818475] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047541.919834899] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047541.952188870] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047541.984665508] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.016009140] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.048402795] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.080809062] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.112165583] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.144652053] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.176082352] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.192223411] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.224715381] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047542.256142236] [turtlesim]: Rotation goal completed successfully
[WARN] [1783047543.335142919] [turtlesim]: Rotation goal received before a previous goal finished. Aborting previous goal
[INFO] [1783047543.806747242] [turtlesim]: Rotation goal completed successfully
[WARN] [1783047545.833930732] [turtlesim]: Rotation goal received before a previous goal finished. Aborting previous goal
[INFO] [1783047545.834608550] [turtlesim]: Rotation goal completed successfully
[INFO] [1783047547.348717894] [turtlesim]: Rotation goal completed successfully

 

B 눌러서 살짝 돌아간 거북이

 

 

 

실행하면 먼가 나오는데

(ros2 galactic py3)er@er:~$ rqt_graph

 

hide 쪽 다 끄니 먼가 좀 나온다.

 

아니면 위에 topic을 적어주면 먼가 나온다.

[링크 : https://m.blog.naver.com/zeta0807/221775210962]

 

-v 옵션  줘서 topic list를 하면 위의 그래프와 동일한 내용이 나온다.

(ros2 galactic py3)er@er:~$ ros2 topic -h
usage: ros2 topic [-h] [--include-hidden-topics] Call `ros2 topic <command> -h` for more detailed usage. ...

Various topic related sub-commands

optional arguments:
  -h, --help            show this help message and exit
  --include-hidden-topics
                        Consider hidden topics as well

Commands:
  bw     Display bandwidth used by topic
  delay  Display delay of topic from timestamp in header
  echo   Output messages from a topic
  find   Output a list of available topics of a given type
  hz     Print the average publishing rate to screen
  info   Print information about a topic
  list   Output a list of available topics
  pub    Publish a message to a topic
  type   Print a topic's type

  Call `ros2 topic <command> -h` for more detailed usage.

(ros2 galactic py3)er@er:~$ ros2 topic list
/parameter_events
/rosout
/turtle1/cmd_vel
/turtle1/color_sensor
/turtle1/pose

(ros2 galactic py3)er@er:~$ ros2 topic list -v
Published topics:
 * /parameter_events [rcl_interfaces/msg/ParameterEvent] 2 publishers
 * /rosout [rcl_interfaces/msg/Log] 2 publishers
 * /turtle1/color_sensor [turtlesim/msg/Color] 1 publisher
 * /turtle1/pose [turtlesim/msg/Pose] 1 publisher

Subscribed topics:
 * /parameter_events [rcl_interfaces/msg/ParameterEvent] 2 subscribers
 * /turtle1/cmd_vel [geometry_msgs/msg/Twist] 1 subscriber

[링크 : https://docs.elephantrobotics.com/docs/gitbook-en/12-ApplicationBaseROS/12.2-ROS2/12.2.2-基础教程.html]

 

하라는 대로 하니 되긴한다. 좋네~

(ros2 galactic py3)er@er:~/colcon_ws$ colcon build --symlink-install
Starting >>> mycobot_description
Starting >>> mycobot_interfaces
Starting >>> mypalletizer_interfaces                                                       
Starting >>> mecharm_interfaces
Finished <<< mycobot_description [9.82s]                                                              
[Processing: mecharm_interfaces, mycobot_interfaces, mypalletizer_interfaces]                                             
[Processing: mecharm_interfaces, mycobot_interfaces, mypalletizer_interfaces]                                                 
Finished <<< mecharm_interfaces [1min 10s]                                              
[Processing: mycobot_interfaces, mypalletizer_interfaces]                               
[Processing: mycobot_interfaces, mypalletizer_interfaces]                               
Finished <<< mycobot_interfaces [2min 26s]                                               
Starting >>> mycobot_communication
Starting >>> mecharm_communication                                                                                    
Finished <<< mypalletizer_interfaces [2min 28s]                                                                           
Starting >>> mypalletizer_communication                                                               
Finished <<< mycobot_communication [10.3s]                                                                  
Starting >>> mybuddy
Starting >>> mycobot_280                                                                                                     
Finished <<< mecharm_communication [10.4s]                                                                      
Starting >>> mecharm
Finished <<< mypalletizer_communication [10.6s]                                                                        
Starting >>> mecharm_pi                                                                        
Finished <<< mecharm [13.1s]                                                                                          
Starting >>> mycobot_280jn
Finished <<< mybuddy [13.4s]                                                                                               
Starting >>> mycobot_280pi
Finished <<< mycobot_280 [13.5s]                                                                             
Starting >>> mycobot_320                                                                                    
Finished <<< mecharm_pi [11.9s]                                                                                 
Starting >>> mycobot_320pi                                                                                  
Finished <<< mycobot_280jn [12.5s]                                                                                
Starting >>> mypalletizer_260
Finished <<< mycobot_320 [12.7s]                                                                                 
Finished <<< mycobot_280pi [14.6s]                                                                               
Starting >>> mypalletizer_260_pi
Starting >>> ultraarm
Finished <<< mycobot_320pi [11.3s]                                                                                         
Finished <<< mypalletizer_260 [10.2s]                                                                              
Finished <<< mypalletizer_260_pi [10.3s]                                                  
Finished <<< ultraarm [10.3s]

Summary: 18 packages finished [3min 17s]
(ros2 galactic py3)er@er:~/colcon_ws$ source install/setup.bash
(ros2 galactic py3)er@er:~/colcon_ws$ ros2 launch mycobot_280pi slider_control.launch.py

[INFO] [launch]: All log files can be found below /home/er/.ros/log/2026-07-03-11-17-17-203959-er-9929
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [9959]
[INFO] [joint_state_publisher_gui-2]: process started with pid [9961]
[INFO] [rviz2-3]: process started with pid [9963]
[INFO] [slider_control-4]: process started with pid [9965]
[robot_state_publisher-1] Link joint2 had 1 children
[robot_state_publisher-1] Link joint3 had 1 children
[robot_state_publisher-1] Link joint4 had 1 children
[robot_state_publisher-1] Link joint5 had 1 children
[robot_state_publisher-1] Link joint6 had 1 children
[robot_state_publisher-1] Link joint6_flange had 0 children
[robot_state_publisher-1] [INFO] [1783048639.394243790] [robot_state_publisher]: got segment joint1
[robot_state_publisher-1] [INFO] [1783048639.394549934] [robot_state_publisher]: got segment joint2
[robot_state_publisher-1] [INFO] [1783048639.394636748] [robot_state_publisher]: got segment joint3
[robot_state_publisher-1] [INFO] [1783048639.394680932] [robot_state_publisher]: got segment joint4
[robot_state_publisher-1] [INFO] [1783048639.394718784] [robot_state_publisher]: got segment joint5
[robot_state_publisher-1] [INFO] [1783048639.394756061] [robot_state_publisher]: got segment joint6
[robot_state_publisher-1] [INFO] [1783048639.394793246] [robot_state_publisher]: got segment joint6_flange
[joint_state_publisher_gui-2] [INFO] [1783048643.531952578] [joint_state_publisher]: Waiting for robot_description to be published on the robot_description topic...
[joint_state_publisher_gui-2] [INFO] [1783048643.610075662] [joint_state_publisher]: Centering
[joint_state_publisher_gui-2] [INFO] [1783048644.027434405] [joint_state_publisher]: Centering
[rviz2-3] [INFO] [1783048644.403594556] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [INFO] [1783048644.404085494] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
[rviz2-3] [INFO] [1783048647.151156049] [rviz2]: Stereo is NOT SUPPORTED
[slider_control-4] array('d', [0.0, 0.0, 0.0, 0.0, 0.0, 0.0])
[slider_control-4] array('d', [-0.0004613180000001549, -0.0004613180000001549, -0.0004613180000001549, -0.0004613180000001549, -0.0004613180000001549, -0.0004613180000001549])

 

 

 

실제 장비가 움직이는진 모르겠지만 뜨긴한다.

$ ros2 launch mycobot_280 test.launch.py
[INFO] [launch]: All log files can be found below /home/er/.ros/log/2026-07-03-11-23-38-154196-er-10335
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [robot_state_publisher-1]: process started with pid [10367]
[INFO] [joint_state_publisher_gui-2]: process started with pid [10369]
[INFO] [rviz2-3]: process started with pid [10371]
[robot_state_publisher-1] Link joint2 had 1 children
[robot_state_publisher-1] Link joint3 had 1 children
[robot_state_publisher-1] Link joint4 had 1 children
[robot_state_publisher-1] Link joint5 had 1 children
[robot_state_publisher-1] Link joint6 had 1 children
[robot_state_publisher-1] Link joint6_flange had 0 children
[robot_state_publisher-1] Link env had 0 children
[robot_state_publisher-1] [INFO] [1783049020.099496084] [robot_state_publisher]: got segment env
[robot_state_publisher-1] [INFO] [1783049020.099850118] [robot_state_publisher]: got segment joint1
[robot_state_publisher-1] [INFO] [1783049020.099978210] [robot_state_publisher]: got segment joint2
[robot_state_publisher-1] [INFO] [1783049020.100036728] [robot_state_publisher]: got segment joint3
[robot_state_publisher-1] [INFO] [1783049020.100077783] [robot_state_publisher]: got segment joint4
[robot_state_publisher-1] [INFO] [1783049020.100116357] [robot_state_publisher]: got segment joint5
[robot_state_publisher-1] [INFO] [1783049020.100152116] [robot_state_publisher]: got segment joint6
[robot_state_publisher-1] [INFO] [1783049020.100192041] [robot_state_publisher]: got segment joint6_flange
[rviz2-3] [INFO] [1783049023.998647585] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [INFO] [1783049023.999256988] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
[joint_state_publisher_gui-2] [INFO] [1783049024.105868138] [joint_state_publisher]: Waiting for robot_description to be published on the robot_description topic...
[joint_state_publisher_gui-2] [INFO] [1783049024.137961673] [joint_state_publisher]: Centering
[joint_state_publisher_gui-2] [INFO] [1783049024.490631764] [joint_state_publisher]: Centering
[rviz2-3] [INFO] [1783049026.693983324] [rviz2]: Stereo is NOT SUPPORTED

 

[링크 : https://docs.elephantrobotics.com/docs/gitbook-en/12-ApplicationBaseROS/12.2-ROS2/12.2.4-rviz介绍及使用/myCobot-280.html]

'embeded > robot' 카테고리의 다른 글

mycobot ros1/ros2  (0) 2026.07.02
gcode (g-code)  (0) 2026.07.01
mycobot280 pi / TCP(tool center point)  (0) 2026.06.30
mycobot 280 pi / python  (0) 2026.06.29
왼손 오른손 좌표계  (0) 2026.06.22
Posted by 구차니