File tree 3 files changed +16
-20
lines changed
3 files changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ project(rosruby)
3
3
4
4
find_package (catkin REQUIRED COMPONENTS)
5
5
6
- find_package (Ruby)
7
-
8
6
catkin_package(
9
7
CATKIN_DEPENDS roslang rosgraph_msgs
10
8
DEPENDS ruby
@@ -44,6 +42,7 @@ endmacro()
44
42
45
43
rosruby_setup()
46
44
45
+ catkin_add_env_hooks(rosruby SHELLS sh DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /env-hooks)
47
46
rosruby_generate_messages(rosgraph_msgs std_msgs roscpp_tutorials)
48
47
49
48
add_custom_target (rosruby_devel_mkdir ALL
Original file line number Diff line number Diff line change @@ -29,13 +29,6 @@ If you want to use groovy,
29
29
sudo apt-get install ros-groovy-rosruby
30
30
```
31
31
32
- and add RUBYLIB environmental variable.
33
-
34
- ``` bash
35
- $ echo " export RUBYLIB=/opt/ros/groovy/lib/ruby/vendor_ruby" >> ~ /.bashrc
36
- $ source ~ /.bashrc
37
- ```
38
-
39
32
Install from source
40
33
---------------
41
34
Install ROS and ruby first. ROS document is [ http://ros.org/wiki/ROS/Installation ] ( http://ros.org/wiki/ROS/Installation ) .
@@ -50,21 +43,18 @@ $ cd ~/catkin_ws
50
43
$ catkin_make
51
44
```
52
45
53
- please add RUBYLIB environment variable, like below (if you are using bash).
54
46
55
- ` ` ` bash
56
- $ echo " export RUBYLIB=~/catkin_ws/devel/lib/ruby/vendor_ruby" >> ~ /.bashrc
57
- $ source ~ /.bashrc
58
- ` ` `
59
-
60
- if you want to use install environment, please edit develop -> install
47
+ Message generation
48
+ -----------------------
49
+ You must generate ROS msg/srv files for rosruby.
50
+ If you are using catkin package, it is easy.
51
+ Please add below to your package CMakeLists.txt.
61
52
62
- export RUBYLIB=~ /catkin_ws/install/lib/ruby/vendor_ruby
53
+ find_package(rosruby)
54
+ rosruby_generate_messages(message_pkg1 message_okg2 ...)
63
55
64
56
65
- Message generation
66
- -----------------------
67
- You must generate ROS msg/srv files for rosruby manually.
57
+ You can generate it manually. (not recomended)
68
58
Please use the msg/srv generation script (rosruby_genmsg.py) in order to
69
59
generage rosruby messages.
70
60
Original file line number Diff line number Diff line change
1
+ @ [if DEVELSPACE]@
2
+ # env variables in develspace
3
+ export RUBYLIB = " @(CATKIN_DEVEL_PREFIX)/@(CATKIN_GLOBAL_LIB_DESTINATION)/ruby/vendor_ruby" : " $RUBYLIB"
4
+ @ [else ]@
5
+ # env variables in installspace
6
+ export RUBYLIB = " $CATKIN_ENV_HOOK_WORKSPACE/@(CATKIN_GLOBAL_LIB_DESTINATION)/ruby/vendor_ruby" : " $RUBYLIB"
7
+ @ [end if ]@
You can’t perform that action at this time.
0 commit comments