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

ravijoshi's profile - activity

2023-07-16 03:13:40 -0500 received badge  Nice Answer (source)
2023-07-03 00:13:09 -0500 received badge  Famous Question (source)
2023-06-13 08:36:43 -0500 received badge  Nice Answer (source)
2023-04-22 21:40:48 -0500 received badge  Good Answer (source)
2023-04-15 04:29:31 -0500 received badge  Favorite Question (source)
2023-03-11 07:55:26 -0500 received badge  Famous Question (source)
2023-02-13 07:52:21 -0500 received badge  Nice Answer (source)
2023-01-25 03:06:44 -0500 commented question import distutils.command.bdist_wininst as orig

duplicate of #q411723

2023-01-24 04:49:11 -0500 received badge  Famous Question (source)
2023-01-10 03:15:07 -0500 commented question Adding a new package to ROS workspace

I'm not sure if doing catkin_make will destabilize the things. You should create a new workspace and install all t

2022-11-29 21:58:01 -0500 marked best answer Unable to read a file while using relative path

Hi, I want to read a file inside python script in ros indigo in the following way -

file_name = rospy.get_param("~file", None)

Below is the snippet of launch file -

<launch>
    <arg name="file"  default="$(find kinematics)/sample/joint_states.csv" />
    <arg name="animation" default="true" />  <!-- run animation -->
    <group if="$(arg animation)">
        <node pkg="kinematics" type="trajectory.py" name="trajectory_animation" respawn="true">
            <param name="file" value="$(arg file)" />
        </node>
    </group>
</launch>

While providing the file parameter as a command line argument, it says No such file or directory. Below is the output of terminal -

ravi@ravi-pc:~/ros_ws$ roslaunch kinematics baxter.launch file:=src/../../Desktop/joint_states.csv 
  File "/home/ravi/ros_ws/src/kinematics/src/trajectory.py", line 19, in __init__
    with open(file_name, 'r') as f:
IOError: [Errno 2] No such file or directory: 'src/../../Desktop/joint_states.csv'
ravi@ravi-pc:~/ros_ws$ ll src/../../Desktop/joint_states.csv
-rw-rw-r-- 1 ravi ravi 179308 May 19 20:46 src/../../Desktop/joint_states.csv
ravi@ravi-pc:~/ros_ws$ roslaunch kinematics baxter.launch file:=src/kinematics/sample/joint_states.csv
  File "/home/ravi/ros_ws/src/kinematics/src/trajectory.py", line 19, in __init__
    with open(file_name, 'r') as f:
IOError: [Errno 2] No such file or directory: 'src/kinematics/sample/joint_states.csv'
ravi@ravi-pc:~/ros_ws$ ll src/kinematics/sample/joint_states.csv
-rw-rw-r-- 1 tom tom 179308 May 19 20:46 src/kinematics/sample/joint_states.csv
2022-11-22 06:55:32 -0500 commented question "Using Callback Groups" demo is not working

@oferbar: I remember verifying the code. As per my comments, you can noticed that it worked fine. I suspect something wr

2022-11-21 19:43:09 -0500 commented question Launch parameters get converted

Why do you want to use sys args ? ROS params are made for that! May I request you to share your use case, please?

2022-11-21 03:40:04 -0500 commented question How to callbirate eye on hand or eye on base for raspberry pi camera.

@akumar3.1428: Please be more specific and always show your progress first. Moreover, you can find many blogs on the int

2022-11-21 03:34:46 -0500 commented question Launch parameters get converted

how to properly send parameters ... Please see how turtlesim_node_with_parameters is defined: https://docs.ros.org/

2022-11-21 03:30:13 -0500 commented question fatal error: ros/ros.h: No such file or directory

Try compiling roscpp_tutorials . If you face the same problem, please reinstall ROS!

2022-11-21 03:21:59 -0500 commented question Moveit could not load resource mesh, rendering error

I wanted to replicate your errors, so I built your package locally. Before that, I disabled start_world and spawn. The b

2022-11-19 08:06:10 -0500 commented answer Can robot_localization be used with Noetic?

I am glad you made it work!

2022-11-17 04:44:42 -0500 answered a question RVIZ how to pass in parameter in launch file

How can I pass the image topic to RVIZ as an argument, so that the RVIZ will be able to show the topic on an image pa

2022-11-17 04:44:42 -0500 received badge  Rapid Responder (source)
2022-11-17 04:39:06 -0500 edited question Troubles compiling because of realsense library

Troubles compiling because of realsense library I am using ROS Noetic on Ubuntu 20.04 to control the openManipulator-X w

2022-11-17 04:38:23 -0500 commented question subscriber class not returning value

All the indentations are correct. In your original post, they were definitely incorrect. cannot get the joint

2022-11-17 04:34:32 -0500 edited question subscriber class not returning value

subscriber class not returning value Here is code class Robotreacher(object): def __init__(self): #rospy.in

2022-11-17 04:29:32 -0500 commented answer Can robot_localization be used with Noetic?

I can't try it right away, but I will certainly try it soon. Does it work?

2022-11-17 04:28:33 -0500 commented question rosbag2_bag_v2 plugins

I used this first but it didn’t worked so I git clone the v_2 plugins from the same.... Do you mean that initially,

2022-11-17 04:27:19 -0500 commented question rosbag2_bag_v2 plugins

I used this first but it didn’t worked so I git clone the v_2 plugins from the same.... Do you mean that initially

2022-11-15 22:21:47 -0500 commented question rosbag2_bag_v2 plugins

The compiler is unable to find roscpp. Can you please post a link of the documentation you followed for the installation

2022-11-15 22:20:13 -0500 edited question rosbag2_bag_v2 plugins

rosbag2_bag_v2 plugins Hello, I am trying to install rosbag2 plugin. While doing that, I am facing this error:- tarti

2022-11-15 21:56:17 -0500 commented question Plugin is unable to load .so file

It seems to be an installation issue. Can you please share a link of the documentation you followed for the installation

2022-11-15 21:54:50 -0500 edited question Plugin is unable to load .so file

Plugin is unable to load .so file Hi, I am trying to run the turtlebot3 in the gazebo using plugins but facing an error

2022-11-15 21:51:12 -0500 edited question Combination of timer and subscriber

Combination of timer and subscriber Hello, I am currently struggling to write a node for synchronous processing while su

2022-11-15 21:49:58 -0500 edited question Combination of timer and subscriber

Combination of rosTimer and rosSubscriber Hello. - Hello. I am currently struggling to write a node for synchronous proc

2022-11-15 21:49:41 -0500 commented question Combination of timer and subscriber

It would be nice to share a minimal reproducible example

2022-11-15 21:41:12 -0500 commented answer Error when initializing trac_ik on Noetic

I am glad that you made it work. Sometime, creating a " minimally reproducible example" helps to filter the issue, as yo

2022-11-15 21:40:55 -0500 commented answer Error when initializing trac_ik on Noetic

I am glad that you made it work. Sometime, creating a " minimally reproducible example" helps to filter the issue, as yo

2022-11-15 21:14:31 -0500 commented answer Error when initializing trac_ik on Noetic

Please see the "Update" section in my answer above. Basically, it works fine with your parameters as well. However, in y

2022-11-15 21:12:07 -0500 edited answer Error when initializing trac_ik on Noetic

I believe the error is coming due to an incorrect installation of trac_ik. To answer you completely, I tested it in ROS

2022-11-15 20:51:11 -0500 commented answer Error when initializing trac_ik on Noetic

... does not happen with the ROS Melodic Most probably because the trac_ik is not install correctly in the Noetic v

2022-11-15 20:50:59 -0500 commented answer Error when initializing trac_ik on Noetic

... does not happen with the ROS Melodic Most probably because the trac_ik isn't install correctly in the Noetic ve

2022-11-15 02:46:34 -0500 commented question Gazebo Plugin For Turtlebot3 Noetic

Can you please provide a link to documentation you followed? Please mention the commands you tried.

2022-11-15 02:38:41 -0500 edited answer Error when initializing trac_ik on Noetic

I believe the error is coming due to an incorrect installation of trac_ik. To answer you completely, I tested it in ROS

2022-11-15 02:37:12 -0500 received badge  Rapid Responder (source)
2022-11-15 02:37:12 -0500 answered a question Error when initializing trac_ik on Noetic

I believe the error is coming due to an incorrect installation of trac_ik. To answer you completely, I tested it in ROS

2022-11-15 02:25:27 -0500 edited question Error when initializing trac_ik on Noetic

Error when initializing TRAC-IK on ROS Noetic Hi! I have used TRAC-IK on ROS Melodic and Kinetic and everything works f

2022-11-15 02:15:57 -0500 commented answer message_filters::sync::ApproximateTime does not call the callback

I am sorry for the misunderstanding. I was answering another question which was tagged as ROS 2. Please ignore 1 and 2.

2022-11-15 02:13:51 -0500 edited answer message_filters::sync::ApproximateTime does not call the callback

Please declare the Synchronizer as a class member. At present, it is a local variable. See this answer for more details.

2022-11-15 00:30:04 -0500 commented answer executable 'spawner' not found on the libexec directory '/opt/ros/foxy/lib/controller_manager' problem

I am glad you made it work!

2022-11-15 00:28:11 -0500 answered a question message_filters::sync::ApproximateTime does not call the callback

I wonder how did you compile the above code. The compiler should have shown errors. Anyway, please read below: Please

2022-11-15 00:28:11 -0500 received badge  Rapid Responder (source)