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

alejandro's profile - activity

2020-06-02 04:23:46 -0500 received badge  Famous Question (source)
2019-02-26 09:52:58 -0500 received badge  Famous Question (source)
2018-05-01 17:29:15 -0500 commented answer Trying to display sensor_msgs/Image in rqt_bag

The problem is not saving the message but displaying that custom message which contains as I said before a sensor_msgs/I

2018-05-01 17:28:14 -0500 commented answer Trying to display sensor_msgs/Image in rqt_bag

The problem is not saving the message but displaying that custom message which contains as I said before a sensor_msgs/I

2018-05-01 14:56:52 -0500 received badge  Notable Question (source)
2018-05-01 13:06:42 -0500 commented answer Trying to display sensor_msgs/Image in rqt_bag

You are talking about publish messages but I don´t pretend to publish messages like in some examples of Publisher-Subscr

2018-05-01 10:33:34 -0500 answered a question Trying to display sensor_msgs/Image in rqt_bag

I´ve finally solved my own question. The problem was the time here: self.bag.write(topic, msg, self.msg.header.stamp) s

2018-05-01 09:37:07 -0500 commented question Trying to display sensor_msgs/Image in rqt_bag

@PeteBlackerThe3rd I dont know exactly what u mean. What I want is a message with sensor_msgs/Image image, string name,

2018-04-30 19:03:43 -0500 received badge  Popular Question (source)
2018-04-30 17:45:02 -0500 commented question Trying to display sensor_msgs/Image in rqt_bag

@PeteBlackerThe3rd cause I need to add extra parameters but I prefer to go little by little.

2018-04-30 13:33:22 -0500 edited question Trying to display sensor_msgs/Image in rqt_bag

Trying to display sensor_msgs/Image in rqt_bag I´m trying to display a custom message in rqt_bag. For that, I´ve tried t

2018-04-30 13:33:01 -0500 edited question Trying to display sensor_msgs/Image in rqt_bag

Trying to display sensor_msgs/Image in rqt_bag I´m trying to display a custom message in rqt_bag. For that, I´ve tried t

2018-04-30 13:30:02 -0500 edited question Trying to display sensor_msgs/Image in rqt_bag

Trying to display sensor_msgs/Image in rqt_bag I´m trying to display a custom message in rqt_bag. For that, I´ve tried t

2018-04-30 13:29:26 -0500 edited question Trying to display sensor_msgs/Image in rqt_bag

Trying to display sensor_msgs/Image in rqt_bag I´m trying to display a custom message in rqt_bag. For that, I´ve tried t

2018-04-30 13:25:50 -0500 edited question Trying to display sensor_msgs/Image in rqt_bag

Trying to display sensor_msgs/Image in rqt_bag I´m trying to display a custom message in rqt_bag. For that, I´ve tried t

2018-04-30 13:25:18 -0500 asked a question Trying to display sensor_msgs/Image in rqt_bag

Trying to display sensor_msgs/Image in rqt_bag I´m trying to display a custom message in rqt_bag. For that, I´ve tried t

2018-04-30 12:58:11 -0500 marked best answer custom msg throwing this error

I´ve followed this tutorial about creating a custom msg: http://wiki.ros.org/msg , but instead of having strings as the content of my message file ( Num.msg) i wanted my message to have this content:

std_msgs/Header header

...

uint8[] data
sensor_msgs/Image

But I´m getting this error when compiling it:

The dependencies of the message/service 'rqt_bag/Num' have changed. Please rerun cmake.
rqt_bag/CMakeFiles/_rqt_bag_generate_messages_check_deps_Num.dir/build.make:57:recipe for target 'rqt_bag/CMakeFiles/_rqt_bag_generate_messages_check_deps_Num'' failed
make[2]: * [rqt_bag/CMakeFiles/_rqt_bag_generate_messages_check_deps_Num] Error 1
CMakeFiles/MakeFiles2:858: recipe for target 'rqt_bag/CMakeFiles/_rqt_bag_generate_messages_check_deps_Num.dir/all' failed
make[1]: [rqt_bag/CMakeFiles/_rqt_bag_generate_messages_check_deps_Num.dir/all] Error 2 Makefile: 138: recipe for target 'all' failed make: ** [all] Error 2
Invoking "make -j1 -l1" failed

As i said before I´ve followed the tutorial, so i have modified the CMakeFile.txt and the package.xml as it is said in the tutorial adding those new fields. However if my message file have just "strings", for example, "string first_name", it all works.

Here is my CMakeFile.txt:

cmake_minimum_required(VERSION 2.8.3)
project(rqt_bag)

find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
)

add_message_files(
FILES
Num.msg
)

generate_messages(
DEPENDENCIES
std_msgs
)

catkin_package(
CATKIN_DEPENDS message_runtime
)

include_directories(
${catkin_INCLUDE_DIRS}
)

${catkin_EXPORTED_TARGETS})

install(FILES plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

install(DIRECTORY launch resource
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

install(PROGRAMS scripts/rqt_bag
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Why????? Thank you so much in advanced.

2018-04-30 12:58:11 -0500 received badge  Scholar (source)
2018-04-30 07:57:01 -0500 received badge  Notable Question (source)
2018-04-29 18:26:41 -0500 received badge  Popular Question (source)
2018-04-29 17:34:17 -0500 commented answer custom msg throwing this error

Thats what I needed, thank u

2018-04-29 17:33:52 -0500 received badge  Supporter (source)
2018-04-29 13:13:45 -0500 commented question custom msg throwing this error

Sorry but I had forgotten one line in my Num.msg which is the last one: sensor_msgs/Image

2018-04-29 13:13:09 -0500 edited question custom msg throwing this error

custom msg throwing this error I´ve followed this tutorial about creating a custom msg: http://wiki.ros.org/msg, but ins

2018-04-29 13:13:09 -0500 received badge  Editor (source)
2018-04-29 12:28:38 -0500 commented question custom msg throwing this error

Thats my CMakeFile.txt. What I actually want to do is to save in a bag file a message like sensor_msgs/Image apart from

2018-04-29 12:23:05 -0500 edited question custom msg throwing this error

custom msg throwing this error I´ve followed this tutorial about creating a custom msg: http://wiki.ros.org/msg, but ins

2018-04-29 11:52:31 -0500 asked a question custom msg throwing this error

custom msg throwing this error I´ve followed this tutorial about creating a custom msg: http://wiki.ros.org/msg, but ins