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

ratneshmadaan's profile - activity

2022-07-10 07:46:22 -0500 received badge  Taxonomist
2021-11-22 14:27:04 -0500 marked best answer Unable to display Mesh as an interactive marker

I want to use a mesh as a marker. To do that, I changed basic_controls.py to :

marker.type = Marker.MESH_RESOURCE;
marker.mesh_resource = 'package://HexagonalPrism.STL'

(And added a from visualization_msgs.msg import * at the top as well)

I get the following error

Error retrieving file [package://HexagonalPrism.STL]: Could not parse package:// format into file:// format

RViz screenshot : https://drive.google.com/file/d/0B-PF...

The same works fine if I do a simple marker:

marker = visualization_msgs.msg.Marker()
marker.type = visualization_msgs.msg.Marker.MESH_RESOURCE
marker.mesh_resource = 'package://HexagonalPrism.STL'

RViz : screenshot : https://drive.google.com/file/d/0B-PF...

2019-01-30 06:55:28 -0500 received badge  Good Answer (source)
2018-04-29 22:03:22 -0500 marked best answer Controlling youbot's arm. brics_actuator/JointPositions

I am trying to integrate leap motion sensor with youBot. I wrote a test publisher to move the joints. However, when I run the python script, I am getting this error:

youbot@youbot-desktop:~$ rosrun youbot_leap leap_armcontrol.py Traceback (most recent call last): File "/home/youbot/catkin_ws/src/youbotleap/scripts/leap_armcontrol.py", line 96, in <module> sender() File "/home/youbot/catkin_ws/src/youbotleap/scripts/leap_armcontrol.py", line 25, in sender msg.positions.joint_uri = "arm_joint_1" AttributeError: 'list' object has no attribute 'joint_uri'

While through the terminal, it runs fine on the bot: youbot@youbot-desktop:~/catkin_ws$ rostopic pub -1 /arm_1/arm_controller/position_command brics_actuator/JointPositions '{positions:[{joint_uri: arm_joint_5, unit: rad, value: 1}]}' publishing and latching message for 3.0 seconds

The message:

youbot@youbot-desktop:~$ rosmsg show brics_actuator/JointPositions brics_actuator/Poison poisonStamp string originator string description float32 qos brics_actuator/JointValue[] positions time timeStamp string joint_uri string unit float64 value

Here's the code:

import rospy
from brics_actuator.msg import JointPositions
pub_youbotleap_arm = rospy.Publisher('arm_1/arm_controller/position_command', JointPositions)
rospy.init_node('armcontrol')

rate = rospy.Rate(20)

msg = JointPositions()

msg.positions.joint_uri = "arm_joint_1"
msg.positions.unit = "rad"
msg.positions.value = 2

pub_youbotleap_arm.publish(msg)

if __name__ == '__main__':
    sender()
    rospy.spin()
2018-02-28 06:37:42 -0500 received badge  Famous Question (source)
2018-02-28 06:37:42 -0500 received badge  Notable Question (source)
2017-09-26 15:59:59 -0500 received badge  Nice Answer (source)
2017-04-20 16:48:12 -0500 marked best answer KnowRob :: visualisation_canvas(_). Lights not available.
?-  visualisation_canvas(_).
lights() is not available with this renderer.
true.

This has got something do to with processing, that I understand.

2017-04-20 16:47:59 -0500 marked best answer Unable to locate package ros-hydro-cram-core

$ sudo apt-get install ros-hydro-cram-core Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package ros-hydro-cram-core

2017-04-20 16:46:17 -0500 marked best answer Error in installing KnowRob (ros-hydro-knowrob)

What I tried :

$ sudo sh -c 'echo "deb packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list' $ sudo apt-get install ros-hydro-knowrob

Error : E: Unable to locate package ros-hydro-knowrob

Note sudo apt-get install ros-groovy-knowrob works fine, but I got hydro.

2016-09-12 07:14:40 -0500 received badge  Necromancer (source)
2016-09-12 07:14:40 -0500 received badge  Teacher (source)
2016-07-07 12:28:33 -0500 received badge  Nice Question (source)
2016-05-10 11:09:06 -0500 received badge  Famous Question (source)
2016-02-15 16:08:19 -0500 received badge  Notable Question (source)
2016-02-14 21:54:07 -0500 commented answer ROS driver for Lightware SF-40/C laser scanner

Able to read the data via minicom. Also the lightware terminal doesn't work with Wine on Ubuntu. Did you happen to try it?

2016-02-14 20:34:40 -0500 commented answer ROS driver for Lightware SF-40/C laser scanner

^Cterminate called after throwing an instance of 'cereal::Exception'

what(): poll failed -- error = 4: Interrupted system call (in cereal::CerealPort::readBytes)

Aborted (core dumped)

2016-02-14 20:32:11 -0500 commented answer ROS driver for Lightware SF-40/C laser scanner

rosrun altitude_sensor altitude_sensor_node

INFO 1455503400.766892744: The serial port is opened. ERROR 1455503401.768272992: Timeout!

ERROR 1455503402.769572975: Timeout!

^Cterminate called after throwing an instance of 'cereal::Exception' what(): po

2016-02-14 16:57:24 -0500 received badge  Popular Question (source)
2016-02-13 13:47:22 -0500 received badge  Famous Question (source)
2016-02-11 21:18:34 -0500 commented answer ROS driver for Lightware SF-40/C laser scanner

Thanks for the quick help! I ll test soon and get back to you.

2016-02-11 14:41:22 -0500 commented answer Has anyone made a Lightware SF10/A laser altimeter driver?

Will the same for SF-40/C. Asked here http://answers.ros.org/question/22636...

2016-02-11 14:35:02 -0500 received badge  Organizer (source)
2016-02-11 14:34:44 -0500 asked a question ROS driver for Lightware SF-40/C laser scanner

Has anyone written a ROS driver for the Lightware SF-40/C laser scanner
I found one for SF-10/C altimeter here https://github.com/wavelab/ros_lightware . Not sure if this will work for SF-40/C as well.

2015-11-03 13:51:42 -0500 commented answer CMake error while executing catkin_make on Ubuntu 14.04 with ROS Jade

Yeah I guess one needs to append this back again to $PYTHONPATH /opt/ros/indigo/lib/python2.7/dist-packages/. Conda seems to have removed it from the path.

2015-11-03 13:49:00 -0500 commented answer CMake error while executing catkin_make on Ubuntu 14.04 with ROS Jade
2015-11-03 13:44:49 -0500 commented answer CMake error while executing catkin_make on Ubuntu 14.04 with ROS Jade

And why should one not use pip? It seems to work here. I admit I didn't really bother with finding the exact cause - some path conflict due to Conda - and an easier fix.

2015-11-03 13:43:37 -0500 commented answer CMake error while executing catkin_make on Ubuntu 14.04 with ROS Jade

The debians dependencies are already installed. I'm guessing this is happening _specifically_ due to Conda, which is changing the directory from where to find things. pip install catkin_pkg rospkg works for the two errors above. Do you recommend a better way to do the same?

2015-11-03 13:12:23 -0500 marked best answer Getting point cloud from image_rect_color using stereo_image_proc

I have a bag publishing left and right camera_info and image_rect_color topics. How can I use stereo_image_proc to get the point cloud?

stereo_image_proc/disparity nodelet subscribes to image_rect and gives out disparity, which can be used by the stereo_image_proc/point_cloud2 nodelet.

Do I need to modify the source code, make a custom launch file or this can be done via an easier way that I am unable to see immediately? Afai understand, I have to convert to mono image and then maybe remap or publish to the relevant topic.

ROS_NAMESPACE=stereo rosrun stereo_image_proc stereo_image_proc -> here the whole node subscribes to raw images which I don't have as a topic.

2015-11-03 13:11:59 -0500 received badge  Popular Question (source)
2015-11-03 13:11:59 -0500 received badge  Notable Question (source)
2015-11-03 13:10:53 -0500 received badge  Famous Question (source)
2015-11-03 13:07:51 -0500 answered a question CMake error while executing catkin_make on Ubuntu 14.04 with ROS Jade

I faced this some time back after installing Conda. tl;dr: Do pip install catkin_pkg.
Chances are you also want to do pip install rospkg as you'll get ImportError: No module named 'rospkg' using launch files as well.

Maybe appending /opt/ros/indigo/lib/python2.7/dist-packages/ to $PYTHONPATH is a better solution (if that's not already there, then it's a different problem). Not tested though.

You can read about the details in the following answers.

catkin_pkg:
http://answers.ros.org/question/12647...
http://answers.ros.org/question/20402...
http://answers.ros.org/question/49143...
http://answers.ros.org/question/61027...

rospkg:
http://answers.ros.org/question/85211...
http://answers.ros.org/question/86126...

2015-11-02 01:26:56 -0500 marked best answer Automating migration from fuerte to indigo

I'd like to automate(or semi-automate) this process http://wiki.ros.org/catkin/migrating_... I'm surprised as there are no scripts available for this. Has someone tried it before? I'm on the lookout for where was someone(or I might get) stuck while trying to achieve this.

2015-11-02 01:26:53 -0500 received badge  Famous Question (source)