ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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 image mgruhler  ( 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 image pallyra1  ( 2018-01-12 22:22:57 -0600 )edit

2 Answers

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 image pallyra1  ( 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 image PeteBlackerThe3rd  ( 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 image PeteBlackerThe3rd  ( 2018-01-13 12:12:17 -0600 )edit
0

answered 2022-01-03 04:53:55 -0600

ramdas369rd gravatar image

I'm exactly at this point, but I'm not able to use catkin_make. The error shows

The specified base path "/home/xxxxxxxx/using_markers" contains a package but "catkin_make" must be invoked in the root of workspace

home/using_makers/

inside using_makers package, there is src, include, CMakeLists.txt and Package.xml

ROS: Noetic

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 582 times

Last updated: Jan 12 '18