Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Browsing latest articles
Browse All 84 View Live

how to point and click on rviz map and output the position.

Can any one tell me how to use mouse to click on a map in Rviz and get the position of this area. Then output it.

View Article


.msg Module not being found

I am running ROS Indigo on Ubuntu 14.04. Here is my package and cmake file: CMAKELIST: cmake_minimum_required(VERSION 2.8.3) project(semantic_label_publisher) ## Find catkin macros and libraries ## if...

View Article


error: no match for 'operator='

Hey, I get this error when building the package: /home/ken/cws/src/mathematics/src/evenNumberGenerator.cpp:24: error: no match for 'operator=' (operand types are 'mathematics::TwoData_>::_data2_type...

View Article

[ROS2] generating DDS .idl files from .msg ROS Message Format

Hi all, I'm trying to create .idl descriptions from the ros message description format. There is the `rosidl_generate_dds_interfaces` package and cmake macro. How would I use this for instance for the...

View Article

Defining Custom Message Types for Rosjava Android

Hello! I am writing an android app in JellyBean to subscribe to a rostopic. I am publishing a custom message type from an ubuntu virtual machine using groovy. I have successfully published and...

View Article


How to create unique Mavros messages

Hello, Skimming through the online documentation, I've figured out how to send default Mavlink messages from a ROS node (haven't tried yet but I know the steps to do it at least). However, I can't find...

View Article

Is it possible to receive a msg on a certain topic by calling a service?

Hi all, I'm working with gazebo, where I created an indoor environment and a mobile robot. The robot is equipped with an RGB-D camera and a logical_camera. Now, I would like to write a node that, given...

View Article

New msg for arduino

HI everybody, I'm studying ROS, and I have a problem. I want to add my message to Arduino sketch, I successfully compiled the Arduino sketch in catkin workspace, but when I tried to add my meessage...

View Article


msg error catkin_make

i try to make custom messages in my workspace. i follow the tutorial, but when i'm catkin_make workspace, i get erorr like this and i try to catkin_make install and get same error. what should i do??...

View Article


ROS msg including image and related variables related to that image

I need to create a publisher which can publish an image along with a few strings, integers and arrays containing different information about the image (like number of objects, bounding boxes, name of...

View Article

How can i generate ROS2 .idl files ?

I am not clear with my application. Maybe I am totally wrong. Is it possible to create .idl files from the ROS2 talker-listener demo ? They are using the standard message type as string. When I run...

View Article

Is the .msg in memory format the same for ROS1 and ROS2?

If I defined some some type FOO, with members X and Y, will the in memory structure generated from .msg "rosidl" be the same as the the in memory structure generated from the rosidl_dds generated .idl?...

View Article

Define a custom message type for .msg files

Hey so my problem is that I need a custom format for msgs which I have no idea how to do with ROS. The problem is that I have a really complex dynamic format and I would basically need a serialize()...

View Article


How to share ros msg type between service & client

Hi Can I share ros msg type (geometry_msgs/Point) between service & client? thanks

View Article

Setting project name "debug_msgs" occurs error while "mydebug_msgs" is ok

when I build my msg project whose name is "debug_msgs" with ros2 bouncy, I get error as follow: command: colcon build output: Starting >>> debug_msgs --- stderr: debug_msgs CMake Error at...

View Article


adding std_msgs Int16 and int ?

i made a simple publisher which publish a Int16. the problem is in the subscriber i try to receive the int16 and add a constant number to it for example 2 the publisher code: #!/usr/bin/env python #...

View Article

How to change the message type of a topic ?

I am facing this error when I try to launch my pose3D.launch node :> [ERROR] [1537274177.574505613]: Client> [/pose3D] wants topic /odo to have> datatype/md5sum>...

View Article


Change message type

When i run the following command line: rostopic info /vehicle/odometry I get this response. I would like to change the type of the msg, from motion_common_msg/Odometry to interval_map/odometry, which I...

View Article

How to get the message text back to the main function

void MyFunc(const std_msgs::String::ConstPtr& msg) { //code } .... ros::Subscriber sub = n.subscribe("shatter", 1000, chatterCallback); standard subscription and reading data from the theme. But I...

View Article

Save specific data from a rosbag into an C++ array variable.

Hello, Currently I am working on a project and we need to extract msgs from a topic inside a rosbag file. Our first idea was to save all the msgs of the topic into a .txt and after that process that...

View Article

How do I implement a Low Pass filter to reduce the noise coming from a topic...

I was able to record the [WrenchStamped](http://docs.ros.org/lunar/api/geometry_msgs/html/msg/WrenchStamped.html) data from the topic to a .bag file, export that data to a .csv file, and finally wrote...

View Article


How to force std::vector type for fixed-length arrays in msg?

Hi, According to this page [http://wiki.ros.org/msg](http://wiki.ros.org/msg) fixed-length arrays in msg files can be interpreted as `boost::array` or `std::vector`. Whenever I tried to apply any...

View Article


catkin_make issue updating .srv and .cpp file simultaneously

Think of a situation where rosnode (written in c++) is using messages generated by a .srv file. You want to add a field to the .srv file and use it in the rosnode. If you make these changes...

View Article

Creating msg messages

Can you please instructions with creating your package from scratch, or rather the description of what you need to specify in CMakeList.txt and package.xml. I understood how to create my overlay and...

View Article

[ROS2] msg headers

Hi, In ROS, I could import other messages using headers. Header header int32 cout int32 nch int32 lenght This way I could include std_msg's **stamp** and **frame_id**. Other wise, I have to add them...

View Article


replay of the finished message through foreach

I have a msg message containing 45 variables, and I’m actually able to fill in the message variables through a loop or should I write each variable manually? I use ros2, I write on C++, assembly...

View Article

Using json in msg

Is it good practice to use the ros2 json message, ie, in a standard message like std_msgs / string, write a string with a json structure?

View Article

ImportError: No module named xxxxxxx.msg

Hi everyone, my question has two parts: first part : when I run the code from the terminal is Ok after this command: catkin_ws$ source ~/catkin_ws/devel/setup.bash but it needs to run this command...

View Article

python rosmsg/rospack in ROS2

I have some python code using rosmsg and rospkg, i.e. rospack = rospkg.RosPack() lines = rosmsg.get_msg_text(msg_name, False, rospack) how to do the same in ROS2 with rclpy?

View Article



beginner tutorials msg srv catkin_make error

Hey, I'm doing the srv/msg tutorial (http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv), and I'm having an error when i use catkin_make, after changing the CMakeLists.txt and package.xml and...

View Article
Browsing latest articles
Browse All 84 View Live