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

rluque's profile - activity

2022-03-20 09:49:13 -0500 received badge  Famous Question (source)
2021-05-12 11:09:00 -0500 asked a question ModbusTcpClient Connection is closed unexpectedly

ModbusTcpClient Connection is closed unexpectedly In this example script, the modbus connection works properly when I ca

2021-03-08 03:55:39 -0500 received badge  Famous Question (source)
2021-03-08 03:37:31 -0500 received badge  Notable Question (source)
2021-03-04 06:58:21 -0500 received badge  Popular Question (source)
2021-03-04 05:58:54 -0500 commented question rosdep install Jenkins error

Exactly, the problem is buildfarm is trying to solve the pip dependency as Debian package. Actually it is the same probl

2021-03-04 05:58:42 -0500 commented question rosdep install Jenkins error

Exactly, the problem is buildfarm is trying to solve the pip dependency as Debian package. Actually it is the same probl

2021-03-04 05:54:46 -0500 commented question rosdep install Jenkins error

ezdxf Python module is only available as pip dependency in Ubuntu focal: https://packages.ubuntu.com/search?suite=defau

2021-03-04 05:53:45 -0500 commented question rosdep install Jenkins error

Exactly, the problem is buildfarm is trying to solve the pip dependency as Debian package. Actually it is the same probl

2021-03-04 02:45:27 -0500 asked a question rosdep install Jenkins error

rosdep install Jenkins error I am trying to build z_laser_projector package successfully. But Jenkins raises the follow

2021-01-11 07:32:03 -0500 marked best answer Buildfarm Jenkins devel job unstable

I'm trying to fix Jenkins devel job of the package z_laser_projector

I'm having some import errors when running tests ("1.3. run tests" Console Section)

ModuleNotFoundError: No module named 'rospkg'

The whole package is developed for python3 in ROS melodic but Jenkins is using python2. I would like to ask if there is any way to force Jenkins configuration in order to run catkin with python3, for example forcing env vars as ROS_PYTHON_VERSION. Or am I missing something on package.xml?

Check that the build succeeds by running tests on TravisCI

2021-01-11 07:32:01 -0500 commented answer Buildfarm Jenkins devel job unstable

Thank you very much for your answer, it has been very helpful!

2021-01-11 03:54:58 -0500 received badge  Notable Question (source)
2020-12-24 02:22:42 -0500 received badge  Popular Question (source)
2020-12-23 06:06:17 -0500 asked a question Buildfarm Jenkins devel job unstable

Buildfarm Jenkins devel job unstable I'm trying to fix Jenkins devel job of the package z_laser_projector I'm having so

2020-12-22 06:47:29 -0500 commented answer Jenkins doc job error: rosdep thriftpy

Thank you very much for your help! I asked for adding python3-thriftpy depend at rosdep. See here: https://github.com/ro

2020-12-22 06:44:48 -0500 marked best answer Jenkins doc job error: rosdep thriftpy

I have this error in the Jenkins doc job of my package: http://build.ros.org/view/Mdoc/job/Md...

04:09:39 /tmp/ws/src/z_laser_projector/doc/zlp_core.rst:4: WARNING: autodoc: failed to import module u'zlp_core'; the following exception was raised:
04:09:39 Traceback (most recent call last):
04:09:39   File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 658, in import_object
04:09:39     __import__(self.modname)
04:09:39   File "/tmp/ws/src/z_laser_projector/src/z_laser_projector/zlp_core.py", line 29, in <module>
04:09:39     import thriftpy
04:09:39 ImportError: No module named thriftpy

I'm trying to solve it including dependencies in my package.xml:

  <build_depend>python3-thriftpy</build_depend>
  <build_export_depend>python3-thriftpy</build_export_depend>
  <exec_depend>python3-thriftpy</exec_depend>

However, when I try to build the package at Travis-CI (in private before try in Jenkins), it throws this error:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
z_laser_projector: Cannot locate rosdep definition for [python3-thriftpy]
The command "rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO" failed and exited with 1 during .

How could I include this dependency in order to fix the Jenkins job? Am I taking the right way to solve the error?

2020-12-22 06:44:48 -0500 received badge  Scholar (source)
2020-11-25 03:10:09 -0500 received badge  Popular Question (source)
2020-11-24 07:20:19 -0500 asked a question Jenkins doc job error: rosdep thriftpy

Jenkins doc job error: rosdep thriftpy I have this error in the Jenkins doc job of my package: http://build.ros.org/view

2020-11-18 00:44:27 -0500 received badge  Popular Question (source)
2020-11-18 00:44:26 -0500 received badge  Famous Question (source)
2020-11-18 00:44:26 -0500 received badge  Notable Question (source)
2020-10-19 07:19:30 -0500 received badge  Popular Question (source)
2020-10-19 03:34:43 -0500 commented question Apply transform to visualization marker

I thought about applying translation/rotation matrix to each point of marker.points array but I don't know how I could p

2020-10-19 01:39:13 -0500 received badge  Organizer (source)
2020-10-19 01:33:56 -0500 asked a question Apply transform to visualization marker

Apply transform to visualization marker I create a visualization marker with circle shape in this way: from geometry_ms

2020-09-11 01:19:02 -0500 received badge  Enthusiast
2020-09-10 05:32:39 -0500 received badge  Notable Question (source)
2020-09-09 11:06:36 -0500 marked best answer Plot multiple paths in rviz

I'm trying to plot different paths at rviz

I'm using the following code to get a first approach (based on this repository: https://github.com/HaoQChen/show_traj...)

import rospy
import math
import numpy as np
from geometry_msgs.msg import PoseStamped
from nav_msgs.msg import Path, Odometry
from std_msgs.msg import Empty

class ProjectElement(object):

    def __init__(self):
        self.path_pub = rospy.Publisher('~path', Path, latch=True, queue_size=10)
        self.circle_sub = rospy.Subscriber('~circle', Empty, self.circle_cb, queue_size=10)
        self.line_sub = rospy.Subscriber('~line', Empty, self.line_cb, queue_size=10)
        self.project_sub = rospy.Subscriber('~project', Empty, self.project_cb, queue_size=10)

        self.paths = []

        self.rate = rospy.Rate(50)

    def circle_cb(self, msg):

        path = Path()

        centre_x = 1
        centre_y = 1
        R = 0.5
        th = 0.0
        delta_th = 0.1

        while (th<2*math.pi):
            x = centre_x + R * math.sin(th)
            y = centre_y + R * math.cos(th)
            th += delta_th

            this_pose_stamped = PoseStamped()
            this_pose_stamped.pose.position.x = x
            this_pose_stamped.pose.position.y = y

            this_pose_stamped.header.stamp = rospy.get_rostime()
            this_pose_stamped.header.frame_id = "/my_cs"

            path.poses.append(this_pose_stamped)

        path.header.frame_id = "/my_cs"
        path.header.stamp = rospy.get_rostime()

        self.paths.append(path)

    def line_cb(self, msg):

        path = Path()

        x_start = 0.0
        y_start = 0.0
        length = 2
        angle = 45 * math.pi/180
        th = 0.0
        delta_th = 0.1

        while (th<length):
            x = x_start + th * math.cos(angle)
            y = y_start + th * math.sin(angle)
            th += delta_th

            this_pose_stamped = PoseStamped()
            this_pose_stamped.pose.position.x = x
            this_pose_stamped.pose.position.y = y

            this_pose_stamped.header.stamp = rospy.get_rostime()
            this_pose_stamped.header.frame_id = "/my_cs"

            path.poses.append(this_pose_stamped)

        path.header.frame_id = "/my_cs"
        path.header.stamp = rospy.get_rostime()

        self.paths.append(path)  

    def project_cb(self, msg):

        while(True):
            for element in self.paths:
                # element.header.stamp = rospy.get_rostime()
                self.path_pub.publish(element)
if __name__ == '__main__':

    rospy.init_node('path_simulate')

    elements = ProjectElement()

    rospy.spin()

I can visualize the paths at rviz, but I don't know how to plot both figures at the same time in this way.

line rviz line rviz image

circle rviz circle rviz image

I would like to ask if this approach is the best way to address this issue or which could be the best way.

2020-09-09 06:32:26 -0500 answered a question Plot multiple paths in rviz

This question was solved here: https://stackoverflow.com/questions/63774548/plot-multiple-paths-in-rviz/63810708#6381070

2020-09-09 06:32:26 -0500 received badge  Rapid Responder (source)
2020-09-08 19:23:51 -0500 received badge  Popular Question (source)
2020-09-07 07:23:26 -0500 edited question Plot multiple paths in rviz

Plot multiple paths in rviz I'm trying to plot different paths at rviz I'm using the following code to get a first appr

2020-09-07 07:22:16 -0500 edited question Plot multiple paths in rviz

Plot multiple paths in rviz I'm trying to plot different paths at rviz I'm using the following code to get a first appr

2020-09-07 07:22:16 -0500 received badge  Editor (source)
2020-09-07 07:19:58 -0500 edited question Plot multiple paths in rviz

Plot multiple paths in rviz I'm trying to plot different paths at rviz I'm using the following code to get a first appr

2020-09-07 07:16:56 -0500 asked a question Plot multiple paths in rviz

Plot multiple paths in rviz I'm trying to plot different paths at rviz I'm using the following code to get a first appr

2020-06-05 07:03:41 -0500 asked a question Autogenerated CODE API with rosdoc_lite and sphinx

Autogenerated CODE API with rosdoc_lite and sphinx I'm trying to doxygenate a python script with the rosdoc_lite tool to