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

Querying Velocity Data on iRobot [closed]

asked 2020-02-05 22:34:58 -0600

hannah1 gravatar image

I'm modifying the driver of the CreateAutonomy code

Why doesnt getVel(); publish anything to the terminal window?

Picture of problem: https://imgur.com/xJQoVM0

https://github.com/AutonomyLab/libcre...

edit retag flag offensive reopen merge delete

Closed for the following reason Question does not follow our guidelines for questions. Please see: http://wiki.ros.org/Support for more details. by gvdhoorn
close date 2020-02-06 02:18:23.514977

Comments

Even though you already have an answer (thanks @atas!) I'm going to be annoying and close this for now.

@hannah1: posting screenshots of terminals and/or code is not needed and very much unwanted. Screenshots are not indexable by search engines (reducing visibility of your question), we cannot copy-paste text out of it (which would make it easier for us to help you) and have a tendency to disappear (which would remove all information from your problem description, as only the screenshot shows the error).

Please replace the screenshot with the actual error and/or terminal content. You may use the edit button/link to do that.

If/when you've done that, I'll re-open your question.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-06 02:20:15 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-05 23:09:54 -0600

updated 2020-02-06 00:55:36 -0600

Hi, Please do not attach screenshots, instead use formatted code text so that people who want to help does not have to look at low resolution pictures.

as for your question you are calling ROS_INFO for printing a value but you are not feeding any data from variables to ROS_INFO; if value of vel.x is double you should call ROS_INFO as;

ROS_INFO("[LOG] vel.x %.2f",vel.x );

then the ROS_INFO will output value of vel.x

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-02-05 22:34:58 -0600

Seen: 81 times

Last updated: Feb 06 '20