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

dottant's profile - activity

2023-01-11 19:05:16 -0500 received badge  Famous Question (source)
2023-01-11 19:05:16 -0500 received badge  Popular Question (source)
2023-01-11 19:05:16 -0500 received badge  Notable Question (source)
2022-12-17 05:05:40 -0500 received badge  Famous Question (source)
2022-12-02 02:04:57 -0500 received badge  Necromancer (source)
2022-12-02 02:04:57 -0500 received badge  Self-Learner (source)
2022-12-02 01:58:03 -0500 received badge  Good Question (source)
2022-06-30 04:31:48 -0500 marked best answer Unable to use rqt_tf_tree in Noetic, dot error

Hi guys, I'm developing on Ubuntu 20 with ROS Noetic full desktop completely updated but I'm struggling with an error I get if I try to run (but it also happens if I run rqt and later I use the TF plugin)

rosrun rqt_tf_tree rqt_tf_tree

The error is:

"dot" with args ['-Tdot', '/tmp/tmp93jif2d2'] returned code: 1

stdout, stderr:
 b''
b"Error: /tmp/tmp93jif2d2: syntax error in line 6 near ':'\n"

PluginHandlerDirect._restore_settings() plugin "rqt_tf_tree/RosTfTree#0" raised an exception:
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/plugin_handler_direct.py", line 121, in _restore_settings
    self._plugin.restore_settings(plugin_settings_plugin, instance_settings_plugin)
  File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/tf_tree.py", line 131, in restore_settings
    self._refresh_tf_graph()
  File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/tf_tree.py", line 143, in _refresh_tf_graph
    self._update_graph_view(self._generate_dotcode())
  File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/tf_tree.py", line 150, in _generate_dotcode
    return self.dotcode_generator.generate_dotcode(dotcode_factory=self.dotcode_factory,
  File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/dotcode_tf.py", line 98, in generate_dotcode
    self.dotcode = self.dotcode_factory.create_dot(self.graph)
  File "/opt/ros/noetic/lib/python3/dist-packages/qt_dotgraph/pydotfactory.py", line 175, in create_dot
    dot = graph.create_dot()
  File "/usr/lib/python3/dist-packages/pydot.py", line 1726, in new_method
    return self.create(
  File "/usr/lib/python3/dist-packages/pydot.py", line 1953, in create
    assert process.returncode == 0, process.returncode
AssertionError: 1

I tried to find something useful on the ROS Answer and on the web, I've seen some open ticket about error related to mine, but I've found just a couple of suggestions that for some people worked, for ex run on a terminal

sudo dot -c

or uninstall pyyaml which it's not possible to do, I get

Found existing installation: PyYAML 5.3.1
Not uninstalling pyyaml at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'PyYAML'. No files were found to uninstall.

No one worked for me. Can you help me? I really need to debug the TF tree in a proper way for a project
Thank you

2022-06-29 10:05:20 -0500 commented question Unable to use rqt_tf_tree in Noetic, dot error

Great job, thanks, it works!

2022-06-29 09:33:54 -0500 commented question Unable to use rqt_tf_tree in Noetic, dot error

Yes, sorry, but for me a symlink is a file which points to another file and in that folder I have the ones i wrote about

2022-06-29 09:33:11 -0500 commented question Unable to use rqt_tf_tree in Noetic, dot error

Yes, sorry, but for me a symlink is a file which points to another file and in that folder I have the ones i wrote about

2022-06-29 02:39:50 -0500 commented question Unable to use rqt_tf_tree in Noetic, dot error

I have a link to python2 as shared library and a link to python3 as executable

2022-06-28 09:40:22 -0500 asked a question Can't run rqt_tf_tree on Noetic, dot error

Can't run rqt_tf_tree on Noetic, dot error Hi guys, I'm developing on Ubuntu 20 with ROS Noetic full desktop freshly upd

2022-06-28 09:32:36 -0500 asked a question Unable to use rqt_tf_tree in Noetic, dot error

Unable to use rqt_tf_tree in Noetic, dot error Hi guys, I'm developing on Ubuntu 20 with ROS Noetic full desktop complet

2022-05-25 04:53:23 -0500 received badge  Great Question (source)
2022-05-19 12:55:48 -0500 received badge  Notable Question (source)
2022-05-17 04:56:20 -0500 commented answer Occupancy grid creation

Updated with new code lines and pics

2022-05-17 04:56:03 -0500 edited question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implement my own controller in ROS1 Melodic for a mobile robot and now I'

2022-05-17 04:38:31 -0500 edited question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implement my own controller in ROS1 Melodic for a mobile robot and now I'

2022-05-16 17:24:02 -0500 received badge  Popular Question (source)
2022-05-16 09:52:02 -0500 commented answer Occupancy grid creation

thank you so much. I updated the question before your answer. It would be great if you have a look thanks

2022-05-16 09:15:55 -0500 edited question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implement my own controller in ROS1 Melodic for a mobile robot and now I'

2022-05-16 08:20:17 -0500 edited question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implement my own controller in ROS1 Melodic for a mobile robot and now I'

2022-05-16 07:25:05 -0500 commented question Occupancy grid creation

Thanks for the answer. The other solution can't be right cause the cell index must be related to the robot position

2022-05-16 05:41:02 -0500 edited question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implement my own controller in ROS1 Melodic for a mobile robot and now I'

2022-05-16 05:40:01 -0500 edited question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implement my own controller in ROS1 Melodic for a mobile robot and now I'

2022-05-16 05:21:21 -0500 asked a question Occupancy grid creation

Occupancy grid creation Hi guys, I'm trying to implementing my own controller in ROS1 Melodic for a mobile robot and now

2022-05-04 16:20:39 -0500 received badge  Famous Question (source)
2022-04-28 11:37:49 -0500 commented answer ROS2 official parameter monitor example doesn't compile

@gvdhoom sure, I wrote it in my answer, I know that the link points to Galactic and I tried to find it within the Foxy s

2022-04-28 11:08:22 -0500 answered a question ROS2 official parameter monitor example doesn't compile

Thank you guys. I investigated and unfortunately I didn't find anything on the official DOC and repo about the accessibi

2022-04-28 10:58:49 -0500 received badge  Notable Question (source)
2022-04-27 08:29:11 -0500 received badge  Popular Question (source)
2022-04-26 10:55:39 -0500 asked a question ROS2 official parameter monitor example doesn't compile

ROS2 official parameter monitor example doesn't compile Hi, I tried on two different Ubuntu 20 machines with ROS2 Galact

2022-04-26 10:54:22 -0500 asked a question ROS2 parameters monitor compile fails

ROS2 parameters monitor compile fails Hi, I tried on two different Ubuntu 20 machines with ROS2 Galactic and Foxy full d

2022-04-13 11:22:53 -0500 answered a question polygon_plugin tutorial

Be sure to not miss in your "polygon_plugins" CMakeLists the line pluginlib_export_plugin_description_file(polygon_bas

2022-04-09 05:20:29 -0500 commented answer How to call spin_some or spin_until_future_complete in member functions

It's ok, it returns a rclcpp::node_interfaces::NodeBaseInterface::SharedPtr needed by the spin_until_future_complete fun

2022-04-09 05:20:13 -0500 commented answer How to call spin_some or spin_until_future_complete in member functions

It's ok, it returns a rclcpp::node_interfaces::NodeBaseInterface::SharedPtr needed by the spin_until_future_complete fun

2020-04-03 02:56:24 -0500 received badge  Favorite Question (source)
2020-04-03 02:55:35 -0500 marked best answer Get odometry from wheels encoders

Hi all, I have a problem to compute odometry from wheel encoders, I mean, i don't have a real problem, I just don't understand a step.
I get the ticks from the encoders (they are about 2626 ticks for a full wheel rotation) and I perform the odometry calculation in the following way(of course this is in a loop...i paste just the important lines about the odometry calculation)

current_time = ros::Time::now();
double DistancePerCount = (3.14159265 * 0.13) / 2626;
double lengthBetweenTwoWheels = 0.25;

// extract the wheel velocities from the tick signals count
deltaLeft = tick_x - _PreviousLeftEncoderCounts;
deltaRight = tick_y - _PreviousRightEncoderCounts;

omega_left = (deltaLeft * DistancePerCount) / (current_time - last_time).toSec();
omega_right = (deltaRight * DistancePerCount) / (current_time - last_time).toSec();

v_left = omega_left * 0.065; //radius
v_right = omega_right * 0.065;

vx = ((v_right + v_left) / 2)*10;
vy = 0;
vth = ((v_right - v_left)/lengthBetweenTwoWheels)*10;

double dt = (current_time - last_time).toSec();
double delta_x = (vx * cos(th)) * dt;
double delta_y = (vx * sin(th)) * dt;
double delta_th = vth * dt;

x += delta_x;
y += delta_y;
th += delta_th;

geometry_msgs::Quaternion odom_quat = tf::createQuaternionMsgFromYaw(th);

geometry_msgs::TransformStamped odom_trans;
odom_trans.header.stamp = current_time;
odom_trans.header.frame_id = "odom";
odom_trans.child_frame_id = "base_link";

odom_trans.transform.translation.x = x;
odom_trans.transform.translation.y = y;
odom_trans.transform.translation.z = 0.0;
odom_trans.transform.rotation = odom_quat;

// send the transform
odom_broadcaster.sendTransform(odom_trans);

// Odometry message
nav_msgs::Odometry odom;
odom.header.stamp = current_time;
odom.header.frame_id = "odom";

// set the position
odom.pose.pose.position.x = x;
odom.pose.pose.position.y = y;
odom.pose.pose.position.z = 0.0;
odom.pose.pose.orientation = odom_quat;

// set the velocity
odom.child_frame_id = "base_link";
odom.twist.twist.linear.x = vx;
odom.twist.twist.linear.y = vy;
odom.twist.twist.angular.z = vth;

// publish the message
odom_pub.publish(odom);
_PreviousLeftEncoderCounts = tick_x;
_PreviousRightEncoderCounts = tick_y;

last_time = current_time;

The thing that I don't understand is why i have to multiply vx and vth for 10 (it is a value that i set randomly and seems to work) to make the odometry consistent with the movements of the robot (if i dont multply, the odometry will change very slowly compared to what the robot does in terms of meters done).
Maybe I'm doing some errors calculating the velocities.
An help would be very very appreciated, thank you.

2020-04-03 02:55:28 -0500 received badge  Nice Question (source)
2019-12-16 05:49:39 -0500 marked best answer sound_play action client c++

Hi all
Anyone knows how to use the sound_play action_lib client request c++ version?
I've see that only a python test file is available.
Thank you so much

2019-12-16 05:49:39 -0500 received badge  Teacher (source)
2019-12-16 05:49:39 -0500 received badge  Self-Learner (source)
2019-09-26 05:58:01 -0500 received badge  Famous Question (source)
2019-06-03 03:19:26 -0500 commented question Get odometry from wheels encoders

This topic is old, there's no need to perform that, the formula was wrong cause I had to fix some hardware issue related

2019-05-20 02:09:43 -0500 marked best answer Realsense SR300 depth streaming

Hi all, anyone can get the depth stream from this 3D camera over ROS? For me it works perfect using the original Intel library tools/example, but in ROS i just can get the RGB stream using this package
https://github.com/BlazingForests/realsense_camera
Im using ROS indigo on Ubuntu 14.04.4 4.2 kernel
Thank you.

2019-03-07 06:11:26 -0500 received badge  Nice Question (source)
2019-02-11 02:33:02 -0500 received badge  Famous Question (source)
2019-01-25 05:59:54 -0500 received badge  Famous Question (source)