Ask Your Question

danielq's profile - activity

2019-06-12 07:51:50 -0600 received badge  Nice Question (source)
2018-03-23 16:11:18 -0600 received badge  Good Question (source)
2017-05-19 08:05:25 -0600 received badge  Famous Question (source)
2017-03-15 00:53:02 -0600 received badge  Nice Question (source)
2017-01-04 05:21:30 -0600 marked best answer differential_drive compilation error: request for member ‘__getMD5Sum’ in ‘m’, which is of non-class type ‘const int’

Hi guys,

I'm trying to follow this tutorial:

but when I compile it I get the following error:

/opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<M>::value(const M&) [with M = int]’:
  /opt/ros/groovy/include/ros/message_traits.h:255:104:   instantiated from ‘const char* ros::message_traits::md5sum(const M&) [with M = int]’
  /opt/ros/groovy/include/ros/publisher.h:112:7:   instantiated from ‘void ros::Publisher::publish(const M&) const [with M = int]’
  /home/d4n/sdc2130/src/auto.cpp:204:29:   instantiated from here
  /opt/ros/groovy/include/ros/message_traits.h:126:34: error: request for member ‘__getMD5Sum’ in ‘m’, which is of non-class type ‘const int’
  /opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::DataType<M>::value(const M&) [with M = int]’:
  /opt/ros/groovy/include/ros/message_traits.h:264:106:   instantiated from ‘const char* ros::message_traits::datatype(const M&) [with M = int]’
  /opt/ros/groovy/include/ros/publisher.h:112:7:   instantiated from ‘void ros::Publisher::publish(const M&) const [with M = int]’
  /home/d4n/sdc2130/src/auto.cpp:204:29:   instantiated from here
  /opt/ros/groovy/include/ros/message_traits.h:143:36: error: request for member ‘__getDataType’ in ‘m’, which is of non-class type ‘const int’
  /opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::MD5Sum<M>::value(const M&) [with M = int]’:
  /opt/ros/groovy/include/ros/message_traits.h:127:3: warning: control reaches end of non-void function [-Wreturn-type]
  /opt/ros/groovy/include/ros/message_traits.h: In static member function ‘static const char* ros::message_traits::DataType<M>::value(const M&) [with M = int]’:
  /opt/ros/groovy/include/ros/message_traits.h:144:3: warning: control reaches end of non-void function [-Wreturn-type]
  make[2]: *** [CMakeFiles/sdc2130.dir/src/auto.cpp.o] Error 1
  make[1]: *** [CMakeFiles/sdc2130.dir/all] Error 2

the line that give me the error is:


someone tell that could be an error from the different format type of the variable, could someone help me a little more?

thanks guys

2016-07-13 02:55:35 -0600 received badge  Favorite Question (source)
2016-02-26 07:21:19 -0600 received badge  Great Question (source)
2015-11-28 16:25:10 -0600 marked best answer Complete coverage path planner

Hi guys,

I'm looking for node that can plan a path that complete coverage a know/unknow map.

There is something that I can use out of the box?


EDIT 1: Nothing out of the box, so could someone help a newbie developer to write a community one?Or could in someone way a newbie developer help to write a community one? I think that it is not an heavy work, or maybe am I wrong? There is quite a lot of example on the internet but nothing for ROS. I'm sorry but I don't know so much C# or python languages to write my own package that can do the job. I have an idea, made by reading some page on the internet, on what it have to do but no one on how to write it down.

Another Thanks everybody

EDIT 2:Thanks @lindzey for the answer. I'm a mechanical designer with interest in programming (without any big experience) and eletronics so my focus is mainly on the physical part of the robot then the code part. I try to learn how ROS works to know how to integrate it on my project and viceversa. Following the tutorials I get the move_base stacks works but arrived to the main problem of my project I found only documentation like this but not a real stack that do the job so I was wondering if someone could help me to find it or a way to write a simple stack. I don't want to steal nothing to anybody but I would create a node that can be usefull for a lot of DIY project like mine. I know that this is not yet a question but could I remove it or reedit when I get more info?

EDIT 3: Sorry for my bad explanation,I had setup my own robot platform and arrived on the move_base stack I was wondering if there is something that give a sequential nav goals, that are all my "node" or better all the area the robot need to visit, put in order with something like the "Travelling Salesman Problem" and integrate with the move_base stack for the obstacle avoid. I'm able to modify some piece of code for minimal personal setting, like adding odometry on my motor driver node, I'm not sure if is enough for writing a new node that do what I want.

2015-06-30 05:43:39 -0600 marked best answer move_base start position is off the global costmap

Hi all,

after following this tutorial and run rviz when I try to give a 2d nav goal in the map the shell output this error:

The robot's start position is off the global costmap. Planning will always fail, are you sure the robot has been properly localized?

someone have any idea what I'm doing wrong?

thanks for your attention

EDIT 1: thanks @ayush_dewan for your answer, I checked my tf tree typing

rosrun rqt_tf_tree rqt_tf_tree

image description

and the rqt_graph

image description

I see that the map server is not connected with the main tree but it is in the tf tree.

I don't understand if is a map trouble (type of the map, resolution,...) or a tf issue.

Edit 2: Tryed the tf_echo command with the following output:

rosrun tf tf_echo /map /base_link
At time 1374093690.903
- Translation: [-0.002, 0.006, 0.000]
- Rotation: in Quaternion [0.000, 0.000, 0.003, 1.000]
            in RPY [0.000, -0.000, 0.005]

rosrun tf tf_echo /map /odom
At time 1374093829.437
- Translation: [-0.224, 0.066, 0.000]

rosrun tf tf_echo /odom /base_link
At time 1374093875.303
- Translation: [0.224, -0.051, 0.000]
- Rotation: in Quaternion [0.000, 0.000, 0.022, 1.000]
            in RPY [0.000, -0.000, 0.045]
- Rotation: in Quaternion [0.000, 0.000, -0.020, 1.000]
            in RPY [0.000, 0.000, -0.039]

it seems to me that all is going well, or better no error is coming out.

Could you please specify a little more where the issue could be? Thanks

EDIT 3:thanks @ahendrix, this is my map.yalm code

image: map01.png
resolution: 0.02
origin: [-5.0, -5.0, 0.0]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.196

and this the Rviz output image description

I hope this could be helpful.

2014-10-15 15:34:01 -0600 received badge  Famous Question (source)
2014-08-21 08:08:37 -0600 received badge  Good Question (source)
2014-07-29 08:44:03 -0600 received badge  Nice Question (source)
2014-07-10 05:39:54 -0600 received badge  Taxonomist
2014-06-20 02:42:18 -0600 received badge  Famous Question (source)
2014-04-20 06:54:24 -0600 marked best answer 'geometry_msgs' depends on non-existent package 'message_runtime'

hi everybody,

I' m trying to install a packege but rosmake ends by this error:

[rospack] Error: package/stack 'geometry_msgs' depends on non-existent >package 'message_runtime' and rosdep claims that it is not a system >dependency. Check the ROS_PACKAGE_PATH or try calling 'rosdep update'

ROS_PACKAGE_PATH is setted on the packege path i'm installing and rosupdate fails by a 404 file not found error. I did't find any documentation about message_runtime package. could someone help me?


2014-04-20 06:54:11 -0600 marked best answer how to install depth image laser scan on fuerte

hi guys, i'm trying to install depthimage_to_laserscan stack by writing

git clone "git link that i cannot post"

cd depthimage_to_laserscan


[ rosmake ] rosmake starting...
[ rosmake ] No package specified. Building ['depthimage_to_laserscan']
[ rosmake ] Packages requested are: ['depthimage_to_laserscan']
[ rosmake ] Logging to directory /home/d4n/.ros/rosmake/rosmake_output-20130420-144925
[ rosmake ] Expanded args ['depthimage_to_laserscan'] to: ['depthimage_to_laserscan']
[rosmake-0] Starting >>> depthimage_to_laserscan [ make ]
[rosmake-0] Finished <<< depthimage_to_laserscan ROS_NOBUILD in package depthimage_to_laserscan No Makefile in package depthimage_to_laserscan [ rosmake ] Results:
[ rosmake ] Built 1 packages with 0 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/d4n/.ros/rosmake/rosmake_output-20130420-144925

but it says

then trying to "rosrun"

rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/dept/image_raw


[rospack] Error: stack/package depthimage_to_laserscan not found

I don't know what I'm doing wrong

I know that probably could be a simple things that I forgot to do.

thank a lot for any help

EDIT 1: thanks everybody

i tried as suggested

cd ~/my_ros_directory_thats_in_ROS_PACKAGE_PATH

git clone -b fuerte-devel

rospack profile

rosmake depthimage_to_laserscan

it results

Failed to invoke /opt/ros/fuerte/bin/rospack deps-manifests depthimage_to_laserscan [rospack] Error: package/stack depthimage_to_laserscan depends on non-existent >package sensor_msgs

then following this

the shell tell me

ros-fuerte-common-msgs is already the newest version.

so, I will migrate to groovy or there is still something to try?

EDIT 2: after a lot of trying I move to groovy and the stack work pretty well.

Thanks for helping me

2014-01-28 17:31:00 -0600 marked best answer export more than one ROS_PACKAGE_PATH

Hi guys,

I had source my catkin_ws as suggest me in this question: but when I roslaunch my launch file the other package are't found.

I had create the ws inside the ROS_PACKAGE_PATH following this tutorial how can I export both path?

thanks guys

2014-01-28 17:30:59 -0600 marked best answer catkin_make package not found

Hi guys,

I'm trying to follow this tutorial but after I catkin_make the package with this output:

Base path: /home/master/catkin_ws
Source space:
/home/master/catkin_ws/src Build
space: /home/master/catkin_ws/build
Devel space:
/home/master/catkin_ws/devel Install
space: /home/master/catkin_ws/install
#### Running command: "make cmake_check_build_system" in

-- Using CATKIN_DEVEL_PREFIX: /home/master/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/groovy
-- This workspace overlays: /opt/ros/groovy
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using CATKIN_TEST_RESULTS_DIR: /home/master/catkin_ws/build/test_results

-- catkin 0.5.65
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 1 packages in topological order:
-- ~~  - robot_setup_tf
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'robot_setup_tf'
-- ==> add_subdirectory(robot_setup_tf)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/master/catkin_ws/build
#### Running command: "make -j1 -l1" in "/home/master/catkin_ws/build"

but when I try

rosrun robot_setup_tf tf_broadcaster

the sheel output is:

[rosrun] Couldn't find executable
named tf_broadcaster below

I'm a newbie in source devoloping soo I don't know what I'm doing wrong, thanks in advance for any help.

2014-01-28 17:30:55 -0600 marked best answer odom_broadcaster.sendTransform(odom_trans) compiling error

Hi guys,

I'm trying to follow this tutorial and I attach to my driver controll node but when I compile it the following error occurred

error: request for member ‘sendTransform’ in ‘odom_broadcaster’, which is of non-class >type ‘tf::TransformBroadcaster*’

this is the line it refers to


if I try to comment that line compile goes "well", but maybe I don't receive the transform for the base link?

Could someone help me?

EDIT 1: I'm sorry but I found somewhere that, that line chage from "tf::TransformBroadcaster odom_broadcaster" to "tf::TransformBroadcaster *odom_broadcaster" so changed it but without a great idea of what i'm doing. So I restore the original version and now the error is:

undefined reference to `tf::TransformBroadcaster::TransformBroadcaster()'

undefined reference to 'tf::TransformBroadcaster::sendTransform(geometry_msgs::TransformStamped_<std::allocator<void> > const&)'

I'm sorry but i thought I restored everything but I was wrong.

any new suggestion?

thanks a lot


Finnaly it works, maybe not in the right way but it works. I add the tf_broadcaster.cpp source in my source folder and also the line in my CMakelist.txt and compile it. I think it's not correct but for the moment is enough.

2014-01-28 17:30:44 -0600 marked best answer Sketchup to urdf file not found

Hi guys,

I'm trying to import my robotmodel on rviz but when I change the urdf file from

<cylinder length="0.6" radius="0.2"/>

to a mesh (created by sketchup) like

<mesh filename="package://robo01.dae"/>

when i run rviz the shell tell me

[ERROR] [1370333859.322282991]: Could not load resource [package://robo01.dae]: Unable to open file "package://robo01.dae". following this post

i try

ls rospack find urdf_tutorial/robo01.dae

and it tell me that the file is in correct place (??).

Could someone tell me what I'm doing wrong?

thanks a lot guys for your answer

2014-01-28 17:30:29 -0600 marked best answer add depth image to laser scan in a launch file

Hi guys,

I'm trying to create my own .launch file but i can't understand how to add the follow rosrun to the file:

rosrun depthimage_to_laserscan depthimage_to_laserscan image:=/camera/depth/image_raw

I know that I can run the node by typing

<node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthimage_to_laserscan"/>

but I don't know how to add the "image:=/camera/depth/image_raw" part.

someone can help me?