/robotic_neck_viz

ROS2 package to visualize the robot kinematics with RVIZ for simulation or digital twin uses.

Primary LanguagePythonApache License 2.0Apache-2.0

robotic_neck_viz

ROS2 package to visualize the robot kinematics with RVIZ for simulation or digital using TF2 and URDF.

Dependencies

Install and Compile

Note: Install launch_utils in your workspace before follow this step

cd <path to your workspace>/src/
git clone https://github.com/Robotic-Neck/robotic_neck_viz.git
cd ..
colcon build --packages-select robotic_neck_viz

Install python3-pykdl dependencie

sudo apt install python3-pykdl

Install ROS packages dependencies with rosdep

Install, init and update rosdep, in case you haven't

sudo apt-get install python3-rosdep
sudo rosdep init
rosdep update

Install dependencies

cd <path to your workspace>/
rosdep install -i --from-path src --rosdistro humble -y

Demo

ros2 launch robotic_neck_viz robotic_neck_urdf.launch.py

Now you can control the platform orientantation by rqt_reconfig.

Documentation

The IK are getting using the Python Kinematics and Dynamics Library in the neck_joint_publisher node. This node publish the JointState, which have a list of the names of the joints and their revolution (in radians) or prismatic (in meter) positions.

If you want to learn how set roll and pirch parameters by code you can check this tutorial about global paramters.