Git Product home page Git Product logo

Comments (8)

mikeferguson avatar mikeferguson commented on August 16, 2024

Do you have any interesting parameters? I can't reproduce this on Maxwell from either debs, or source catkin build.

from arbotix_ros.

pirobot avatar pirobot commented on August 16, 2024

I should have included my config and launch files. Here they are now :

fake_turtlebot_arbotix.yaml:

port: /dev/ttyUSB0
baud: 115200
rate: 20
sync_write: True
sync_read: True
read_rate: 20
write_rate: 20

controllers: {
   #  Pololu motors: 1856 cpr = 0.3888105m travel = 4773 ticks per meter (empirical: 4100)
   base_controller: {type: diff_controller, base_frame_id: base_footprint, base_width: 0.26, ticks_meter: 4100, Kp:     12, Kd: 12, Ki: 0, Ko: 50, accel_limit: 1.0 }
}

fake_turtlebot.launch:

<launch>
  <param name="/use_sim_time" value="false" />

  <!-- Load the URDF/Xacro model of our robot -->
  <arg name="urdf_file" default="$(find xacro)/xacro.py '$(find rbx1_description)/urdf/turtlebot.urdf.xacro'" />

  <param name="robot_description" command="$(arg urdf_file)" />

  <node name="arbotix" pkg="arbotix_python" type="driver.py" output="screen">
      <rosparam file="$(find rbx1_bringup)/config/fake_turtlebot_arbotix.yaml" command="load" />
      <param name="sim" value="true"/>
  </node>

  <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher">
      <param name="publish_frequency" type="double" value="20.0" />
  </node>

  <!-- We need a static transforms for the wheels -->
  <node pkg="tf" type="static_transform_publisher" name="odom_left_wheel_broadcaster" args="0 0 0 0 0 0 /base_link /left_wheel_link 100" />
  <node pkg="tf" type="static_transform_publisher" name="odom_right_wheel_broadcaster" args="0 0 0 0 0 0 /base_link /right_wheel_link 100" />

</launch>

from arbotix_ros.

pirobot avatar pirobot commented on August 16, 2024

Just found a possible clue: everything works fine with your catkinized source here on Github but the Groovy debs seem to have been built from an earlier source since they still use driver.py instead of the new arbotix_driver:

$ roscd arbotix_python/nodes
$ pwd
/opt/ros/groovy/stacks/arbotix/arbotix_python/nodes
$ ls -l 
total 52
-rwxr-xr-x 1 root root  7961 Sep 23  2011 controllerGUI.py
-rw-r--r-- 1 root root 10087 Feb 11 20:21 controllerGUI.pyc
-rwxr-xr-x 1 root root  6684 Sep 23  2011 driver.py
-rw-r--r-- 1 root root  6528 Feb 11 20:21 driver.pyc
-rwxr-xr-x 1 root root  6941 Sep 23  2011 terminal.py
-rw-r--r-- 1 root root  6417 Feb 11 20:21 terminal.pyc

from arbotix_ros.

mikeferguson avatar mikeferguson commented on August 16, 2024

Try running "rospack profile" now that the catkinized arbotix is installed.

If that doesn't fix it, I'd suggest deleting the /opt/ros/groovy/stacks/arbotix folder and running 'rospack profile'-- unfortunately, this seem to be an issue when going from dry->wet debs (saw the same problem with xacro), that the old deb files aren't removed unless you uninstall the dry version and then install wet.

from arbotix_ros.

pirobot avatar pirobot commented on August 16, 2024

I was hoping to use the Groovy debian version but it is that version that does not appear to publish odom->base_link and it appears to be using the older driver.py instead of the newer arbotix_driver. Does that mean that the Groovy debian version was not built from your catkinized version here on Github?

from arbotix_ros.

mikeferguson avatar mikeferguson commented on August 16, 2024

Ok, there we go -- the public ROS repo still has 0.6.1. My computer is setup for shadow-fixed (which has the 0.8.1 release, which is catkinized). As soon as they sync over, things should start working for you (but I'm not sure how long that might be, I released about a week ago).

from arbotix_ros.

pirobot avatar pirobot commented on August 16, 2024

OK cool, I can wait. Just wanted to make sure I wasn't doing something wrong.

from arbotix_ros.

mikeferguson avatar mikeferguson commented on August 16, 2024

No problem -- as it turns out, testing from debs found a different issue (now #2). I'm gonna close this fixed for now.

from arbotix_ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.