Ask Your Question
0

How to use hydro and groovy Both together?

asked 2014-01-21 22:16:09 -0500

programmer gravatar image

updated 2014-01-23 04:40:06 -0500

i want to use both hydro and groovy ros desktop but when i use below commad to change ros hydro to ros groovy not happened, what's problem?

#source /opt/ros/groovy/setup.bash

edit retag flag offensive close merge delete

Comments

1

Could you clarify your problem?

bchr gravatar image bchr  ( 2014-01-21 23:50:41 -0500 )edit

I was written my codes in groovy, now i install hydro but i can't run my codes now, i want to run my code on groovy but, by default ros run it on hydro... what's problem? How can i do?

programmer gravatar image programmer  ( 2014-01-22 03:02:36 -0500 )edit
1

Try to explain exactly what you are running, how, and what the errors are. If you do not give any detail, we cannot help you.

bchr gravatar image bchr  ( 2014-01-22 03:56:00 -0500 )edit

i want to run hector_slam on groovy but always ros run it on hydro.

programmer gravatar image programmer  ( 2014-01-22 19:05:31 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
4

answered 2014-01-22 18:28:01 -0500

Hello!

Note that you might not necessarily be able to run any Groovy program on Hydro (Hydro program on Groovy) but assuming it does, you'd need to build it with your target installation sourced. To clarify, an example where your package is in the directory ~/catkin_workspace:

Every time you want to switch installations you'll need to do all of these:

  • source /opt/ros/groovy/setup.bash or source /opt/ros/hydro/setup.bash
  • cd ~/catkin_workspace
  • rm /devel -r
  • rm /build -r
  • catkin_make
  • source devel/setup.bash
  • rosrun my_package do_cool_stuff

Note that you need to remove /devel and /build (actually probably just /devel, but I'm not sure about that one) because it contains references to the current installation, ie it is Groovy or Hydro specific.

-Tim

edit flag offensive delete link more

Comments

Thank Tim for your good answer... :-) but i never use catkin make, i always use rosmake to make anything in ros, it cause something difference?

programmer gravatar image programmer  ( 2014-01-22 19:12:22 -0500 )edit

I've personally never used rosmake, but you should be able to just substitute it in there

Tim Sweet gravatar image Tim Sweet  ( 2014-01-24 20:41:53 -0500 )edit
1

answered 2014-01-22 07:22:58 -0500

Hamid Didari gravatar image

Hi I'm not sure understand your problem properly. but you must attention when you make a package in Groovy and run it you can't use it in hydro. before using that you must make this in hydro and take notice, some msgs and stack are changed in hydro.

edit flag offensive delete link more

Comments

Thanks for your time Hamid.

programmer gravatar image programmer  ( 2014-01-22 19:14:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-01-21 22:16:09 -0500

Seen: 287 times

Last updated: Jan 23 '14