-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathROS1_Node_Build.txt
48 lines (31 loc) · 1.28 KB
/
ROS1_Node_Build.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
https://github.com/lgsvl/simulator/issues/1406
Create and build a package in autoware docker
Creating a workspace for catkin
http://wiki.ros.org/catkin/Tutorials/create_a_workspace
Creating a ROS Package
http://wiki.ros.org/ROS/Tutorials/CreatingPackage
Writing a Simple Publisher and Subscriber
http://wiki.ros.org/rospy_tutorials/Tutorials/WritingPublisherSubscriber
# 1. Creating a workspace for catkin
mkdir -p catkin_ws/src && cd catkin_ws
catkin_make
# 2. Creating a ROS Package
$cd catkin_ws/src
$catkin_create_pkg <package_name> std_msgs rospy roscpp
# switch back to catkin_ws, source the generated setup file to add the workspace to your ROS environment
$cd .. && . devel/setup.bash
# 3. Create a publisher
roscd <package_name>
mkdir scripts && cd scripts
wget https://raw.github.com/ros/ros_tutorials/kinetic-devel/rospy_tutorials/001_talker_listener/talker.py && chmod +x talker.py
# Modify talker.py according your needs.. (it's a vim-like editor I guess)
rosed <package_name> talker.py
# Building the nodes
cd catkin_ws
catkin_make
# Running the nodes with rescore or runtime manager running in another terminal
rescore
**OR**
roslaunch runtime_manager runtime_manager.launch
# Back to the 1st terminal, run the talker node
rosrun <package_name> talker.py