Ask Your Question
0

how to build the code for running rviz?

asked 2018-01-12 02:29:20 -0600

pallyra1 gravatar image

I am following the tutorials for Markers :sending basic shapes. I am stuck at this step, where it says build the code using command cd %TOP_DIR_YOUR_CATKIN_WORKSPACE% catkin_make

Please help.

edit retag flag offensive close merge delete

Comments

Please state more clearly what your Problem is. Don't you understand what this means or is there a Problem with the build?

mgruhler gravatar imagemgruhler ( 2018-01-12 03:04:59 -0600 )edit

My workspace is catkin_ws I use two commands cd ~/catkin_ws catkin_make After that I use rosrun using_markers basic _shapes where using_markers is package name and i want to run basic_shapes. But I am getting error, [WARN] Please create a subscriber to the marker

pallyra1 gravatar imagepallyra1 ( 2018-01-12 22:22:57 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-12 05:23:07 -0600

This part of the tutorial means you need to use a terminal to navigate to the top level directory of your workspace then run catkin_make

For example if you have a workspace directory called my_project_ws inside your home directory you can open a terminal and type the following command to move to the workspace.

cd ~/my_project_ws

If you type the ls command (short for list) it will show the contents of this directory which should contain a src directory and possibly some other directories and files. Now you're in the right location you can build your package by typing:

catkin_make

Hope this clears this up for you.

edit flag offensive delete link more

Comments

My workspace is catkin_ws I use two commands cd ~/catkin_ws catkin_make After that I use rosrun using_markers basic _shapes where using_markers is package name and i want to run basic_shapes. But I am getting error, [WARN] Please create a subscriber to the marker Please help with this error

pallyra1 gravatar imagepallyra1 ( 2018-01-12 22:23:38 -0600 )edit

Okay you've got the build working that's great. To keep these answers tidy can you please accept this answer and ask a new question for the warning you've just described. It gets confusing if more than one question get asked and answered in a single thread. Thanks.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2018-01-13 10:57:25 -0600 )edit

Looking at the source code of the node. The message [WARN] Please create a subscriber to the marker isn't an error at all it's what the node is meant to do. try starting RVIZ and viewing the topic, that should show everything working.

PeteBlackerThe3rd gravatar imagePeteBlackerThe3rd ( 2018-01-13 12:12:17 -0600 )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

Stats

Asked: 2018-01-12 02:29:20 -0600

Seen: 178 times

Last updated: Jan 12 '18