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

DKS's profile - activity

2020-09-02 13:19:30 -0500 received badge  Famous Question (source)
2018-10-19 19:36:36 -0500 received badge  Notable Question (source)
2017-10-29 10:50:52 -0500 received badge  Taxonomist
2017-08-08 17:05:34 -0500 received badge  Notable Question (source)
2017-08-08 17:05:34 -0500 received badge  Popular Question (source)
2016-10-12 15:27:36 -0500 received badge  Popular Question (source)
2016-10-12 08:14:10 -0500 received badge  Editor (source)
2016-10-12 08:13:56 -0500 answered a question rosserial arduino faulty data [closed]

I fixed the issue with a fresh install of Kinetic.

2016-10-11 11:37:38 -0500 asked a question rosserial arduino faulty data [closed]

I'm running the following code un my Arduino Uno:

#include <ros.h>
#include <geometry_msgs/Twist.h>

ros::NodeHandle  nh;


void messageCb( const geometry_msgs::Twist& velo_msg){
  nh.loginfo(String(velo_msg.linear.x).c_str());
}

ros::Subscriber<geometry_msgs::Twist> sub("cmd_vel", &messageCb );

void setup() {
  nh.initNode();
  nh.subscribe(sub);
}

void loop() {
  nh.spinOnce();
}

If I publish the following message:

linear: 
  x: 0.5
  y: 0.0
  z: 0.0
angular: 
  x: 0.0
  y: 0.0
  z: 0.0
---

The output is correct:

[INFO] [WallTime: 1476202779.883673] 0.50

However if I publish this message:

linear: 
  x: -0.5
  y: 0.0
  z: 0.0
angular: 
  x: 0.0
  y: 0.0
  z: 0.0
---

The program seems to get faulty data from rosserial:

[INFO] [WallTime: 1476202781.667369] -0.00

Any idea what could be the issue? Am I making a type conversion mistake?

2016-03-24 08:58:00 -0500 received badge  Famous Question (source)
2016-03-08 04:41:53 -0500 received badge  Student (source)
2015-11-21 13:51:27 -0500 received badge  Notable Question (source)
2015-10-19 09:13:44 -0500 received badge  Notable Question (source)
2015-08-29 05:10:36 -0500 received badge  Supporter (source)
2015-08-26 04:35:04 -0500 received badge  Enthusiast
2015-08-25 16:48:01 -0500 commented answer Generate prerelease script error

Thank you, ticket opened!

2015-08-25 16:39:40 -0500 received badge  Popular Question (source)
2015-08-24 16:55:57 -0500 asked a question Generate prerelease script error

Hello everyone,

I'm trying to run a local prerelease using the prerelease command generator website. In my case it generates the following command:

mkdir -p /tmp/prerelease_job
cd /tmp/prerelease_job
generate_prerelease_script.py \
  https://raw.githubusercontent.com/ros-infrastructure/ros_buildfarm_config/master/index.yaml \
  jade default ubuntu trusty amd64 \
  heatmap \
  --level 1 \
  --output-dir ./

When I run the commands I get the following error message:

Fetching buildfarm configuration...
Fetching rosdistro cache...
Traceback (most recent call last):
  File "/usr/bin/generate_prerelease_script.py", line 263, in <module>
    sys.exit(main())
  File "/usr/bin/generate_prerelease_script.py", line 149, in main
    source_repository.name = 'prerelease'
AttributeError: 'NoneType' object has no attribute 'name'

What's the problem?

2015-08-24 11:13:58 -0500 received badge  Popular Question (source)
2015-08-24 07:53:22 -0500 received badge  Scholar (source)
2015-08-24 07:33:37 -0500 asked a question How to fix a Jenkins error?

Hello everyone,

the binary builds of my package in Jenkins failed with a dependency error. I fixed the error in my CMakeLists.txt file and updated the Github repo accordingly. However the last two builds still failed with the same error. I was assuming that Jenkins downloads the files from Github every time it tries to build?

Do I have to do anything else in order to make Jenkins build from the updated repo?

Thanks!

2015-07-28 03:28:22 -0500 received badge  Notable Question (source)
2015-07-28 03:28:22 -0500 received badge  Famous Question (source)
2015-01-21 08:00:02 -0500 asked a question Exclude topic from namespace

Hello,

I have a Turtlebot running the navigation stack and a workstation that runs the corresponding map-server.

The amcl node is launched in a namespace so that all published and subscribed topics get prefixed with that namespace. So amcl is subscribing to /namespace/map instead of just /map.

Now I want to exclude the map topic from the namespace so that amcl subscribes to /map again but all other topics should still be prefixed. I tried to remap it from "map" to "/map" but that didnt't change anything.

Thanks for your help.

2015-01-20 06:55:09 -0500 received badge  Popular Question (source)
2015-01-07 09:04:55 -0500 asked a question Map scaling between Stage and RViz

I'm trying to simulate a custom map in stage using RViz to send goals to the simulated robot. I recorded the map using a Turtlebot and the map scale is 0.05 according to the .yaml file. When I open RViz and take a look at the laser scan I see that the distance measured is scaled incorrectly as you can see in the screenshot. image description

I also set the map resolution to 0.05 in the stage world file:

define block model
(
  size [0.5 0.5 0.5]
  gui_nose 0
)

define topurg ranger
(
    sensor(             
    range [ 0.0  30.0 ]
    fov 270.25
   samples 1081
  )

  # generic model properties
  color "black"
  size [ 0.05 0.05 0.1 ]
)

define erratic position
(
  #size [0.415 0.392 0.25]
  size [0.35 0.35 0.25]
  origin [-0.05 0 0 0]
  gui_nose 1
  drive "diff"
  topurg(pose [ 0.050 0.000 0 0.000 ])
)

define floorplan model
(
  # sombre, sensible, artistic
  color "gray30"

  # most maps will need a bounding box
  boundary 1

  gui_nose 0
  gui_grid 0

  gui_outline 0
  gripper_return 0
  fiducial_return 0
  laser_return 1
)

# set the resolution of the underlying raytrace model in meters
resolution 0.05

interval_sim 100  # simulation timestep in milliseconds


window
( 
  size [ 745.000 448.000 ] 

  #rotate [ 0.000 0.0 ]
  scale 10 
)

# load an environment bitmap
floorplan
( 
  name "cave"
  size [51.2 62.4 0.5]
  pose [-25.7 31.2  0 00.000 ]
  bitmap "bitmaps/dks4e.png"
)

# throw in a robot
erratic( pose [ -20.00000 13.8 0.000000 0 ] name "era" color "blue")

This is the .yaml file:

image: dks4e.png
resolution: 0.050000
origin: [-34.600000, -13.800000, 0.000000]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.196

The resolution of dks4e.png file is 1024x1248 pixels. So which value do I need to edit to get the scaling between Stage and RViz right?