Instead of typing the whole message content in command line, you can set the content in a yaml file
: msg.yaml :
x: 1.0
y: 2.0
z: 3.0
and then pass the file to the ros2 command line.
Instead of typing the whole message content in command line, you can set the content in a yaml file
: msg.yaml :
x: 1.0
y: 2.0
z: 3.0
and then pass the file to the ros2 command line.
PureRef: a board to add images when doing design | |
PyCharm: IDE for Python | |
CLion: IDE for CLion | |
Spyder: IDE for Python - Matlab like | |
Variety: A WallPaper changer |
URDF -> SDF
gz sdf -p file.urdf > file.sdf
SDF -> URDF
rosrun pysdf sdf2urdf.py file.sdf file.urdf
ERB -> SDF
#!/usr/bin/env python | |
import numpy as np | |
def _hex_to_rgb(hex_str): | |
""" | |
Converts hex str to r, g, b | |
Asserts that hex_str has a {RRGGBB} format | |
""" | |
r, g, b = hex_str[:2], hex_str[2:4], hex_str[4:] | |
rgb = [int(n, base=16) for n in (r,g,b)] |
When calling pub.unregister
we get warning messages that look like that:
[WARN] [1544525264.664350]: Could not process inbound connection: [/pub_bug] is not a publisher of [/topic2]. Topics are [['/rosout', 'rosgraph_msgs/Log']]{'message_definition': 'string data\n', 'callerid': '/pub_bug', 'tcp_nodelay': '0', 'md5sum': '992ce8a1687cec8c8bd883ec73ca41d1', 'topic': '/topic2', 'type': 'std_msgs/String'}
This script tries to reproduce the error in various conditions to locate where the issue comes from
Run cat
then press keys to see the codes your shortcut send.
(Press Ctrl+C
to kill the cat
when you're done.)
For me, (ubuntu, konsole, xterm) pressing Alt + <-
sends ^[[1;3D
, so i would put in my .zshrc
bindkey "^[[1;3C" forward-word
bindkey "^[[1;3D" backward-word
(Actually I prefer to use Ctrl + arrow to move word by word, like in a normal textbox under windows or linux gui.)
Related question: http://stackoverflow.com/questions/8638012