This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Cython.Build import cythonize | |
from distutils.core import setup, Extension | |
ext = Extension(name="wrap_fib", | |
sources=["cfib.c", "wrap_fib.pyx”]) | |
setup(ext_modules=cythonize(ext)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import roslib | |
roslib.load_manifest('learning_tf') | |
import rospy | |
import tf | |
if __name__ == '__main__': | |
rospy.init_node('my_tf_broadcaster') | |
br = tf.TransformBroadcaster() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rospack find [package_name] | |
rospack find roscpp | |
# goto package directory | |
roscd roscpp | |
# go to log directory | |
roscd log | |
# list dir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to be added |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install all dependencies of a package | |
rosdep install my_package | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Standard metadata for higher-level stamped data types. | |
# This is generally used to communicate timestamped data | |
# in a particular coordinate frame. | |
# | |
# sequence ID: consecutively increasing ID | |
uint32 seq | |
#Two-integer timestamp that is expressed as: | |
# * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs') | |
# * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs') | |
# time-handling sugar is provided by the client library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show message definition | |
rosmsg show sensor_msgs/CameraInfo | |
# show message type | |
rostopic type rosout | |
# quick message definition view | |
rostopic type rosout | rosmsg show | |
# echo message live content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start ros master + rosout + ps | |
roscore | |
# list all the running nodes | |
rosnode list | |
# get information | |
rosnode info /rosout | |
# run ros node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list parameter | |
rosparam list | |
# set parameter | |
rosparam set parameter_name | |
rosparam set /background_r 150 | |
# get parameter | |
rosparam get /background_g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<launch> | |
<group ns="turtlesim1"> | |
<node pkg="turtlesim" name="sim" type="turtlesim_node"/> | |
</group> | |
<group ns="turtlesim2"> | |
<node pkg="turtlesim" name="sim" type="turtlesim_node"/> | |
</group> | |
OlderNewer