ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Okay, it works now so I'll answer my own question and maybe it will help someone else down the road.

[floorbot/commands] vs [robot_ctlr/commands] was the issue. I was hoping that the 'commands' part was all it needed. Not the case. So I tried changing ever instance of robot_ctlr to floorbot (file names, folder names and the string in the text of any file). It took me a while but I did it. It was still very broke. So below I will explain how I rebuilt my work space with a new name, since I've never seen specific directions on how to do this.

Rebuilding a catkin workspace from the source code:

I did this as a copy.

First make a new folder in you home directory. I called it 'testkin_ws'.
You get this: ~/testkin_ws/ (/home/<computer_name" testkin_ws)<="" p="">

Next make an 'src' folder in there so you get this: ~/testkin_ws/src/

Copy just the code into 'src' and change all the instances of 'robot_ctlr' to 'floobot'. Of course, those names would be the ones that you want to change. I used the find and replace function in Atom. With all the names changed, now all we need to do is rebuild the workspace and let catkin rebuild the project.

Still in 'src' type 'catkin_init_workspace'.

Go back to 'testkin_ws' (cd ..) and type 'catkin_make' to build the solution.

Source the setup from that same location too - 'source devel/setup.bash'.

I also ran 'catkin_make install' to make the 'build' folder too.


So that's it! I'll reiterate it here with command line input (this is the same as above):

From the GUI, make a new folder in the home directory 'testkin_ws' and inside that make a folder 'src'. You get ~/testkin_ws/src/. Copy the source files into 'src', open in an editor and change all instances of the old name to the new. Now open a terminal. Type the following:

cd testkin_ws/src
catkin_init_workspace
cd ..
catkin_make
source devel/setup.bash

Then I did

catkin_make install

Rebuilt and renamed!

Corrections are welcome!

Okay, it works now so I'll answer my own question and maybe it will help someone else down the road.

[floorbot/commands] vs [robot_ctlr/commands] was the issue. I was hoping that the 'commands' part was all it needed. Not the case. So I tried changing ever instance of robot_ctlr to floorbot (file names, folder names and the string in the text of any file). It took me a while but I did it. It was still very broke. So below I will explain how I rebuilt my work space with a new name, since I've never seen specific directions on how to do this.

Rebuilding a catkin workspace from the source code:

I did this as a copy.

First make a new folder in you home directory. I called it 'testkin_ws'.
You get this: ~/testkin_ws/ (/home/<computer_name" testkin_ws)<="" p="">

Next make an 'src' folder in there so you get this: ~/testkin_ws/src/

Copy just the code folder (my was named 'robot_ctlr' I had to rename it 'floorbot' - it also contained the msg folder with my 'commands.msg file') into 'src' and change all the instances of 'robot_ctlr' to 'floobot'. Of course, those names would be the ones that you want to change. I used the find and replace function in Atom. With all the names changed, now all we need to do is rebuild the workspace and let catkin rebuild the project.

Still in 'src' type 'catkin_init_workspace'.

Go back to 'testkin_ws' (cd ..) and type 'catkin_make' to build the solution.

Source the setup from that same location too - 'source devel/setup.bash'.

I also ran 'catkin_make install' to make the 'build' folder too.


So that's it! I'll reiterate it here with command line input (this is the same as above):

From the GUI, make a new folder in the home directory 'testkin_ws' and inside that make a folder 'src'. You get ~/testkin_ws/src/. Copy the source files and folders into 'src', open in an editor and change all instances of the old name to the new. Also change the main folder inside 'src' to match the name of the project. Now open a terminal. Type the following:

cd testkin_ws/src
catkin_init_workspace
cd ..
catkin_make
source devel/setup.bash

Then I did

catkin_make install

Rebuilt and renamed!

Corrections are welcome!

Okay, it works now so I'll answer my own question and maybe it will help someone else down the road.

[floorbot/commands] vs [robot_ctlr/commands] was the issue. I was hoping that the 'commands' part was all it needed. Not the case. So I tried changing ever instance of robot_ctlr to floorbot (file names, folder names and the string in the text of any file). It took me a while but I did it. It was still very broke. So below I will explain how I rebuilt my work space with a new name, since I've never seen specific directions on how to do this.

Rebuilding a catkin workspace from the source code:

I did this as a copy.

First make a new folder in you home directory. I called it 'testkin_ws'.
You get this: ~/testkin_ws/ (/home/<computer_name" testkin_ws)<="" p="">

Next make an 'src' folder in there so you get this: ~/testkin_ws/src/

Copy just the code folder (my was named 'robot_ctlr' I had to rename it 'floorbot' - it also contained the msg folder with my 'commands.msg file') into 'src' and change all the instances of 'robot_ctlr' to 'floobot'. Of course, those names would be the ones that you want to change. I used the find and replace function in Atom. With all the names changed, now all we need to do is rebuild the workspace and let catkin rebuild the project.

Still in 'src' type 'catkin_init_workspace'.

Go back to 'testkin_ws' (cd ..) and type 'catkin_make' to build the solution.

Source the setup from that same location too - 'source devel/setup.bash'.

I also ran 'catkin_make install' to make the 'build' folder too.


So that's it! I'll reiterate it here with command line input (this is the same as above):

From the GUI, make a new folder in the home directory 'testkin_ws' and inside that make a folder 'src'. You get ~/testkin_ws/src/. Copy the source files and folders into 'src', open in an editor and change all instances of the old name to the new. Also change the main folder inside 'src' to match the name of the project. Now open a terminal. Type the following:

cd testkin_ws/src
catkin_init_workspace
cd ..
catkin_make
source devel/setup.bash

Then I did

catkin_make install

Rebuilt and renamed!

This was good enough to test. I ultimately took my old project, added an '_old' suffix to it and rebuilt it in a new 'catkin_ws' folder to maintain some scripts and sourcing the '.bashrc ' file.

Corrections are welcome!